Boost logo

Boost-Build :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-07-17 12:38:22


I've checked out the latest version of Boost 1.34 - tagged
Version_1_34_1_RC3

I've carefully read the Boost Build documentation (very much improved) and
attempted to build the serialization library with the command line executed
in the directory ../libs/serialization/build:

bjam --toolset=msvc-7.1

I get compilation errors - which I've never seen before. The command line
from file binary_iarchive.obj.rsp for compilation is:

"..\..\..\libs\serialization\src\binary_iarchive.cpp" -Fo"..\..\..\bin.v2\libs\serialization\build\msvc-7.1\debug\threading-multi\binary_iarchive.obj"
 -TP /Z7 /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /GB /Op /wd4675 /EHs
/Gy -c
-DBOOST_ALL_NO_LIB=1
-DBOOST_SERIALIZATION_DYN_LINK=1
"-I..\..\.."

Which seems almost OK. It looks like my compilation errors are related in
someway to the switch

-DBOOST_ALL_NO_LIB=1

I've looked at the Jamfile.v2 for boost serialization build and it includes
only -DBOOST_SERIALIZATION_DYN_LINK=1

Searching around, I find in the boost root directory Jamfile.v2 which
contains the following:

# disable auto-linking for all targets here,
# primarily because it caused troubles with V2
<define>BOOST_ALL_NO_LIB=1

Which seems that it might be relevant to my case - it begs for a better
explanation.

Soooooooo - what do I do now? The following facts are also interesting:

a) the official boost test results are all passing for this combination of
compiler and library. They don't show any compilation errors. The result
matrix doesn't let me see the compilation command line for the build - I
would be curious to see it.

b) I've made VC IDE project which compiles the code with no problem. It
doesn't pass the above switches though.

This kind of thing is very frustrating.

Robert Ramey


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