|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-11 06:40:27
On Friday 10 November 2006 21:05, Phillip Seaver wrote:
> Vladimir Prus wrote:
> > However, I realize I don't understand that threading=multi means on msvc.
> > It certainly affects which runtime is selected. But does it affect the
> > generated object files in any way?
>
> I wouldn't call myself an expert, but I use the compiler fairly
> frequently. :-) Yes, it does. From the MSDN documentation:
>
> "/MT - Defines *_MT* so that multithread-specific versions of the
> run-time routines are selected from the standard header (.h) files.
> This option also causes the compiler to place the library name
> LIBCMT.lib into the .obj file so that the linker will use LIBCMT.lib to
> resolve external symbols.
Does it mean that if you try to mix object files compiled with different
settings of <threading> they'll try to link to different runtime, producing
either duplicated symbols error, or more subtle, but equally fatal, problem?
- Volodya
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk