[Botan-devel] Linking error [SOLVED]

Joel Low joel at joelsplace.sg
Tue Jul 3 06:09:29 EDT 2007


It does seem to me that you are using VS 2003; I'm talking about VS 2005.

Sorry for the confusion.

Joel

> -----Original Message-----
> From: Christophe Meessen [mailto:meessen at cppm.in2p3.fr]
> Sent: 3 July 2007 3:22 PM
> To: Botan development list
> Subject: Re: [Botan-devel] Linking error [SOLVED]
> 
> 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
> 
> 
> _______________________________________________
> 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