Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 6C1EC9FB446 for ; Sun, 3 Jun 2007 10:26:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 41050-10 for ; Sun, 3 Jun 2007 10:26:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from p15195424.pureserver.info (p15195424.pureserver.info [82.165.34.74]) by postgresql.org (Postfix) with ESMTP id 4A7759FB349 for ; Sun, 3 Jun 2007 10:26:31 -0300 (ADT) Received: from dsl-217-155-86-70.zen.co.uk ([217.155.86.70] helo=[192.168.0.2]) by p15195424.pureserver.info with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.43) id 1Huq6F-0001R4-2W for pgsql-odbc@postgresql.org; Sun, 03 Jun 2007 14:26:28 +0100 From: Mark Cave-Ayland To: pgsql-odbc@postgresql.org Date: Sun, 03 Jun 2007 14:26:26 +0100 Message-Id: <1180877186.5205.13.camel@mca-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-SA-Exim-Connect-IP: 217.155.86.70 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk Subject: Build problems with latest CVS (2007-06-03) on MSVC++ Express 2005 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.1 (built Wed, 05 Jan 2005 10:54:05 -0500) X-SA-Exim-Scanned: Yes (on p15195424.pureserver.info) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/7 X-Sequence-Number: 8996 Hi everyone, I'm working on building the latest CVS of psqlODBC from CVS using MS Visual C++ Express 2005 and thought you may like some extra feedback on the build process. The instructions in win32-compilation.html were helpful, but I needed to make the following changes: 1. Modify the PostgreSQL installation to include the development headers and MSVC libraries. 2. Open psqlodbc.rc and make the following change on line 10: #include "afxres.h" -> #include "mfc/afxres.h" 3. Copy C:\OpenSSL\lib\VC\ssleay32MT.lib as ssleay32.lib. 3. Pass the MSDTC=no option to nmake. If I try to build without the MSDTC=no option then I get the following error upon compilation: Generating Code... link.exe @C:\DOCUME~1\MARKCA~1\LOCALS~1\Temp\nm53.tmp Creating library .\Release\psqlodbc35w.lib and object .\Release \psqlodbc35w.exp cl.exe @C:\DOCUME~1\MARKCA~1\LOCALS~1\Temp\nm56.tmp pgxalib.cpp link.exe @C:\DOCUME~1\MARKCA~1\LOCALS~1\Temp\nm57.tmp Creating library .\Release\pgxalib.lib and object .\Release \pgxalib.exp link.exe @C:\DOCUME~1\MARKCA~1\LOCALS~1\Temp\nm59.tmp msdtc_enlist.obj : error LNK2019: unresolved external symbol _CC_set_autocommit referenced in function "short __cdecl EnlistInDtc_1pipe(struct ConnectionClass_ *,struct ITransaction *,struct ITransactionDispenser *)" (?EnlistInDtc_1pipe@@YAFPAUConnectionClass_@@PAUITransaction@@PAUITransactionDispenser@@@Z) .\Release\pgenlist.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8 \VC\BIN\link.exe"' : return code '0x460' Stop. ATB, Mark.