Keith Hutchison wrote:
> Hi Bart
> 
> On 9/8/06, Bart Samwel <[EMAIL PROTECTED]> wrote:
>> Keith Hutchison wrote:
>> > Is it possible to compile the libpqxxD.dll with being dependent on
>> > MSVCP80D.DLL and MSVCR80D.DLL
>>
>> I assume you meant to write _without_, in which case the answer is no,
>> it's not possible.
> Yes ... my mistake
> 
>> These files contain part of the VC++ runtime library
>> and are therefore a dependency of most VC++ programs compiled in debug
>> mode. But... ehm... why do you ask? Do you get errors while linking?
> Yes, can't link as multiple threaded debug (/MTd).
> though I can link as multiple threaded DLL debug  (/MDd)
> 
>> Do
>> you want to distribute your application compiled in debug mode and you
>> don't want to ship these files?
>>
> No. Want to distribute as multiple threaded (/MT).
> Have not tested either /MT or /MD in release configuration but
> LIBPQXX.DLL is dependent on MSVCP80.DLL and MSVCR80.DLL
> so I'm guessing /MT won't link.

You'll have to change the vc-libpqxx.mak so that libpqxxD.dll links with 
/MTd and so that libpqxx.dll links with /MT. These lines control the 
specific flags for that:

CXX_FLAGS_DLLRELEASE=$(CXX_FLAGS_BASE) /MD  /D "NDEBUG" /D "PQXX_SHARED"
CXX_FLAGS_DLLDEBUG=$(CXX_FLAGS_BASE) /MDd /Gm /ZI /Od /D "_DEBUG" /D 
"PQXX_SHARED" /GZ

Change that to /MT and /MTd, respectively, and you should get versions 
that can link with /MT and /MTd.

Cheers,
Bart
_______________________________________________
Libpqxx-general mailing list
Libpqxx-general@gborg.postgresql.org
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to