[Botan-devel] Linking error [SOLVED]

Christophe Meessen meessen at cppm.in2p3.fr
Mon Jul 2 14:01:20 EDT 2007


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.




More information about the botan-devel mailing list