Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6AB2D6328C1 for ; Wed, 28 Jan 2009 15:16:05 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 24205-01-3 for ; Wed, 28 Jan 2009 15:15:59 -0400 (AST) X-Greylist: delayed 00:31:44.953833 by SQLgrey-1.7.6 Received: from mail.admc.com (mail.admc.com [65.212.180.110]) by mail.postgresql.org (Postfix) with ESMTP id C175E6328B1 for ; Wed, 28 Jan 2009 15:15:13 -0400 (AST) Received: from c-98-233-189-113.hsd1.wv.comcast.net ([98.233.189.113] helo=[192.168.101.240]) by mail.admc.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LSFNl-0001GE-AF; Wed, 28 Jan 2009 13:43:25 -0500 Message-ID: <4980A74B.3040602@admc.com> Date: Wed, 28 Jan 2009 13:43:23 -0500 From: Blaine Simpson User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: plea for Windows build help X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ACL-Warn: Skipping Clamav and Spamassassin scans X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/22 X-Sequence-Number: 9761 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 #endif #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@16 socket.obj : error LNK2001: unresolved external symbol _freeaddrinfo@4 socket.obj : error LNK2019: unresolved external symbol __imp__getnameinfo@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 resolution. Any tips would be greatly appreciated.