From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
To: pgsql-odbc@postgresql.org
Subject: Build problems with latest CVS (2007-06-03) on MSVC++ Express 2005
Date: Sun, 03 Jun 2007 14:26:26 +0100
Message-ID: <1180877186.5205.13.camel@mca-desktop> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: mark.cave-ayland@ilande.co.uk
Subject: Re: Build problems with latest CVS (2007-06-03) on MSVC++ Express 2005
In-Reply-To: <1180877186.5205.13.camel@mca-desktop>
References: <1180877186.5205.13.camel@mca-desktop>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox