[Botan-devel] Linking error [SOLVED]

Joel Low joel at joelsplace.sg
Mon Jul 2 17:54:45 EDT 2007


Actually, I think nothing has to be done. It is more likely that you sent
the wrong compile flags when compiling your client program instead of
compiling Botan.

The confusion occurs because in the Visual Studio IDE /MD is default for
release and /MDd is default for debug. When building from the command line
/MT is default and /MTd is default for debug.

All VS 2005 libraries are now multithreaded, there are no more
single-threaded libraries.

Joel

> -----Original Message-----
> From: Christophe Meessen [mailto:meessen at cppm.in2p3.fr]
> Sent: 3 July 2007 2:01 AM
> To: Botan development list
> Subject: Re: [Botan-devel] Linking error [SOLVED]
> 
> I modified the make file and added /MT to the CXX compilation flag.
> This generates a library to be used for release and multithreaded.
> 
> For debug I need to change the compilation options .
> I added /MTd to CXX flags, removed /Ob2 and replaced /O2 by /Od.
> 
> This yields libraries I named libbotanMT.lib and libbotanMTd.lib.
> It now compiles and links.
> 
> So to support multhithreaded program one has to adjust compilation
> parameters.
> It would be nice if one could set a flag specifying the request for a
> multithreaded version of the library and that the LibraryInitialize
> object activates the thread_safe flag by default.
> On windows we also need debug and release anyway.
> 
> Note that I compiled and run the check successfully with the default
> make options.
> 
> 
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://www.randombit.net/mailman/listinfo/botan-devel




More information about the botan-devel mailing list