Boost Testing :
From: Reece Dunn (msclrhd_at_[hidden])
Date: 2006-06-24 20:23:14
Hartmut Kaiser wrote:
> Reece Dunn wrote:
> > There are currently some issues when running:
> > bjam --v2 install msvc-7.1 # 
> > and
> > bjam --v2 install msvc-7.1 link=static,shared # 
> > These were identified in the "[Boost-build] boost.build v2
> > and toolset="
> > discussion on the boost.build mailing list.
> > Running  highlights a problem with Boost.Wave. Since wave
> > adds <rtti>off for msvc-7.1, this is causing problems when it
> > is pulling in Boost.FileSystem. The <tag> rule is using the
> > <rtti>on version of filesystem, not the <rtti>off version, so
> > BBv2 ends up trying to create two versions of
> > boost_filesystem-vc71-mt-gd-1_35.lib.
> > The workaround is to open the following files:
> > $(BOOST_ROOT)/tools/wave/build/Jamfile.v2
> > $(BOOST_ROOT)/libs/wave/build/Jamfile.v2
> > and comment out the line:
> > <toolset-msvc:version>7.1:<rtti>off # workaround for
> > compiler bug
> > in each, however this is not an ideal solution :(!
> If you do that, the build will fail because of the mentioned compiler bug.
Hence it being a workaround to the install issue.
> The only way is to accept to get two different versions of the libraries.
> What perhaps needs to be done is to code the rtti settings into the library
Thanks! Your hint lead to a solution that works for:
bjam --v2 install msvc-7.1 link=static,shared
The Wave/FileSystem issue is solved by adding 'r' when rtti=on.
The DateTime issue is a more global one relating to building link=static
and link=share at the same time. The msvc compiler produces a LIB
file in both these cases (static produces a STATIC_LIB target and
share produces an IMPORT_LIB target). These targets clash, hence
The solution I have gone for is to add "-imp" for IMPORT_LIB targets.
Therefore, link=static will produce:
and link=share will produce:
This causes the above install to work. I haven't done extensive
testing, just the above. If this is approved, I will commit it.
NOTE: I don't know about other combinations.
Try Live.com: where your online world comes together - with news, sports, weather, and much more.