Skip site navigation (1) Skip section navigation (2)

plea for Windows build help

From: Blaine Simpson <blaine(dot)simpson(at)admc(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: plea for Windows build help
Date: 2009-01-28 18:43:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
I'm trying to build the default 32 bit dll on Windows using MS Visual
C++ from the command line.  I have searched this mailing list but found
no discussion of these problems.

I've followed the "COMMAND LINE METHOD" instructions in
win32-compilation.html, except for using the currently available
versions of slproweb's OpenSSL distro and Visual C++ Express.  In an
unsuccessful attempt to avoid complications, I started with the last
bundled source distro, psqlodbc-08.03.0400.tar.gz
My PC is running 32 bit Vista.

First, I changed the "afxres.h" reference in psqldb.rc to "windows.h",
since afxres.h does not exist anywhere on my PC, and added

  #ifdef IDC_STATIC
  #undef IDC_STATIC
  #define IDC_STATIC (-1)  // all static controls

to psqldb.rc (I guess this constant is probably intended to be set in
afxres.h?).  With these changes, I get all the way to the final link,
whereupon I get

  socket.obj : error LNK2001: unresolved external symbol _getaddrinfo(at)16
  socket.obj : error LNK2001: unresolved external symbol _freeaddrinfo(at)4
  socket.obj : error LNK2019: unresolved external symbol
__imp__getnameinfo(at)28 referenced in function _SOCK_connect_to
.\Release\psqlodbc35w.dll : fatal error LNK1120: 3 unresolved externals

from link.exe.  Internet searches say that these symbols should be
defined in ws2_32.dll, but once again, ws2_32.dll does not exist
anywhere on my PC.  I see that the winsock dll's are present in
\Windows\system32, and I'd think they should be capable of basic address

Any tips would be greatly appreciated.


pgsql-odbc by date

Next:From: Shoaib NaazirDate: 2009-01-28 21:57:10
Subject: Re: plea for Windows build help
Previous:From: Hiroshi InoueDate: 2009-01-23 23:43:13
Subject: Re: Localized error messages, wrong charset

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group