[Botan-devel] Linking error [SOLVED]

Christophe Meessen meessen at cppm.in2p3.fr
Tue Jul 3 03:22:29 EDT 2007


Joel Low a écrit :
> 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
>   
 From my experience, it is the opposite. My VC++2003 IDE set /MT flag by 
default on projects and the command line built used the /MD flag 
implicitely. I could have set this default IDE setting myself a long 
time ago. I don't remember.
The check worked because it uses the same setting as for the library 
compilation.

In my case I needed /MT code and it is the reason why I added the 
"thread-safe" option to init.

I know that this /MT option is a frequent source of problems. I 
understand that forcing all code to be /MT would help but this won't 
yield most efficient code. User should have a way to step back from this.

-- 
Bien cordialement,

Ch. Meessen




More information about the botan-devel mailing list