cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl static/static-'/MT' in MSVC, paying for binaries/.libs

From: Georg Lippitsch <georg.lippitsch_at_gmx.at>
Date: Thu, 14 Feb 2008 20:42:08 +0100

Am Donnerstag, 14. Februar 2008 05:44 schrieb Kevin Lawler:

> [...]
> link.exe /incremental:no /libpath:"../lib" /nologo
> /out:curl.exe/subsys tem:console /machine:X86 libcurl.lib wsock32.lib
> bufferoverflowu.lib wldap32.lib
> winmm.lib hugehelpr.obj writeoutr.obj urlglobr.obj getpassr.obj
> homedirr.ob
> j curlutilr.obj strtoofftr.obj mainr.obj curlr.res
> LIBCMT.lib(setlocal.obj) : error LNK2005: __configthreadlocale already
> defined i
> n MSVCRT.lib(MSVCR80.dll)
> LIBCMT.lib(setlocal.obj) : error LNK2005: _setlocale already defined in
> MSVCRT.l
> ib(MSVCR80.dll)
> [...]

There is another /MD in \src\Makefile.VC8
Changing this to /MT works for me. Also, don't forget to change VC6 to VC8 in
the Makefile in base directory.

BTW, it's really confusing that curl sets /MT in \lib\Makefile.VC*
automatically when RTLIBCFG ist set to static, but does not in
\src\Makefile.VC*

Georg
Received on 2008-02-14