pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feed[psqlODBC 08.02.0401] Compiling fails on VS2005SP1
3+ messages / 2 participants
[nested] [flat]
* [psqlODBC 08.02.0401] Compiling fails on VS2005SP1
@ 2007-05-31 18:28 Rainer Bauer <usenet@munnin.com>
0 siblings, 1 reply; 3+ messages in thread
From: Rainer Bauer @ 2007-05-31 18:28 UTC (permalink / raw)
To: pgsql-odbc
Hi,
I have checked out the latest source and tried to compile it without success.
1>C:\Program Files\VS8\VC\include\crtdbg.h(628) : warning C4005: '_malloca' :
macro redefinition
1> C:\Program Files\VS8\VC\include\malloc.h(217) : see previous
definition of '_malloca'
This error is related to the _CRTDBG_MAP_ALLOC definition in these files:
psqlodbc.h, inouealc.c and win_unicode.c. If I add _MEMORY_DEBUG_ to the
preprocessor defines the error goes away.
Could it be that this is because I am using the latest Windows SDK and
VS2005SP1?
Linking fails, because ssleay32.lib is not found. I checked the OpenSSL
installation and the Visual C++ libraries are located in "C:\OpenSSL\lib\VC"
and are named depending on the target (single/multi threaded, release/debug,
etc.). But since ssleay32.lib is defined in the linker input project settings
this cannot work. Shouldn't the lib name be generated dynamically depending on
the target which is build and specified in the source with pragma's?
Rainer
PS: By default the project is set up to create the Unicode driver. Am I right
to assume that in order to build the ANSI version I have to remove
UNICODE_SUPPORT and set ODBCVER to 0x0300?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [psqlODBC 08.02.0401] Compiling fails on VS2005SP1
@ 2007-05-31 19:08 Rainer Bauer <usenet@munnin.com>
parent: Rainer Bauer <usenet@munnin.com>
0 siblings, 1 reply; 3+ messages in thread
From: Rainer Bauer @ 2007-05-31 19:08 UTC (permalink / raw)
To: pgsql-odbc
I wrote:
>Linking fails, because ssleay32.lib is not found. I checked the OpenSSL
>installation and the Visual C++ libraries are located in "C:\OpenSSL\lib\VC"
>and are named depending on the target (single/multi threaded, release/debug,
>etc.). But since ssleay32.lib is defined in the linker input project settings
>this cannot work. Shouldn't the lib name be generated dynamically depending on
>the target which is build and specified in the source with pragma's?
After manually copying and renaming the lib files
(C:\OpenSSL\lib\VC\ssleay32MTd.lib -> ~\psqlodbc\ssleay32.lib and
C:\OpenSSL\lib\VC\libeay32MTd.lib -> ~\psqlodbc\libeay32.lib) I have another
linker error:
LINK : fatal error LNK1104: cannot open file 'pgenlist.lib'
Where do I get that from?
Rainer
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [psqlODBC 08.02.0401] Compiling fails on VS2005SP1
@ 2007-06-01 00:45 Hiroshi Inoue <inoue@tpf.co.jp>
parent: Rainer Bauer <usenet@munnin.com>
0 siblings, 0 replies; 3+ messages in thread
From: Hiroshi Inoue @ 2007-06-01 00:45 UTC (permalink / raw)
To: Rainer Bauer <usenet@munnin.com>; +Cc: pgsql-odbc
Rainer Bauer wrote:
> I wrote:
>
>> Linking fails, because ssleay32.lib is not found. I checked the OpenSSL
>> installation and the Visual C++ libraries are located in "C:\OpenSSL\lib\VC"
>> and are named depending on the target (single/multi threaded, release/debug,
>> etc.). But since ssleay32.lib is defined in the linker input project settings
>> this cannot work. Shouldn't the lib name be generated dynamically depending on
>> the target which is build and specified in the source with pragma's?
>
> After manually copying and renaming the lib files
> (C:\OpenSSL\lib\VC\ssleay32MTd.lib -> ~\psqlodbc\ssleay32.lib and
> C:\OpenSSL\lib\VC\libeay32MTd.lib -> ~\psqlodbc\libeay32.lib) I have another
> linker error:
>
> LINK : fatal error LNK1104: cannot open file 'pgenlist.lib'
The pgenlist library is used for MSDTC support and isn't needed
unless _HANDLE_ENLIST_IN_DTC_ is defined. A #pragma in loadlib.c
seems to be the cause. I lready fixed the bug in my local source
for 8.2.0402.
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2007-06-01 00:45 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-05-31 18:28 [psqlODBC 08.02.0401] Compiling fails on VS2005SP1 Rainer Bauer <usenet@munnin.com>
2007-05-31 19:08 ` Rainer Bauer <usenet@munnin.com>
2007-06-01 00:45 ` Hiroshi Inoue <inoue@tpf.co.jp>
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