cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Yang Tse <yangsita_at_gmail.com>
Date: Thu, 14 Feb 2008 17:04:42 +0100

2008/2/14, Kevin Lawler wrote:

> My goal is to not use any DLLs.

Remember that with /MT you will get the c runtime library statically
linked into _each_ built library. So if your program uses more than
one library you would end up with an app that has more than one copy
of the CRT, with the additional surprise that they don't share
internal status data.

I suggest you that you use /MD to build each library and app even if
you finally link them statically. This way your app would only depend
on the CRT dll, and what is more important all code linked in your app
would share a single instance of the CRT.

-- 
-=[Yang]=-
Received on 2008-02-14