Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2003-09-19 06:24:05

> This resulted in several warnings, mostly due to the
> conversion of larger intagral types to smaller one
> (possible loss of data) and the following linker
> errors(edited):
> A:
> error LNK2005: "private: __thiscall type_info::type_info(
> class type_info const &)" (??0type_info@@AAE_at_ABV0@@Z)
> already defined in LIBCD.lib(typinfo.obj)

This occurs when the lib you're linking to was built with different code
generation options than your .exe. The libs are built against the dynamic
runtime by default, if you want to link against the static runtime lib, then
invoke bjam with:

bjam -sBUILD="release debug <runtime-link>static" -sTOOLS=vc7

for the static single threaded variants


bjam -sBUILD="release debug <runtime-link>static
<threading>multi" -sTOOLS=vc7

for the static multithreaded variants.


Boost list run by bdawes at, gregod at, cpdaniel at, john at