cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiler flags for Windows builds

From: Andrew Francis <locust_at_familyhealth.com.au>
Date: Sat, 8 Mar 2003 13:34:59 +0800

On Sat, Mar 08, 2003 at 09:08:27AM +0700, Andi Jahja wrote:
> IMO, there is an unparelel switch between Borland and VC6 makefiles.
> For Borland, -tWM is used while VC6's counterpart /MT is not.
> IIRC, -tWM and /MT are switches to enable Multi - Threading (CMIIW).

It doesn't "enable multithreading" as such, but instead uses
a multi-thread-safe version of the statically linked standard
C library. You can use threads in an application linked against
the non-thread-safe library, but doing stuff like malloc()
simultaneously in different threads is prone to breakage.

curl links against the dynamically linked version of the C
standard library, which is also thread safe. The /MD
flag does this.

-- 
Andrew Francis
Software Developer
Family Health Network
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
Received on 2003-03-08