Boost logo

Boost-Build :

From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2008-04-16 09:51:44

   Hi Bruce

> I downloaded boost1.35.0 and built it with following command:
> bjam --toolset=msvc-7.1 --variant=release --threading=multi
> --link=shared --with-system stage
> and it failed to compile, error message is:
> E:\software\development\boost_1_35_0\boost_1_35_0>bjam
> --toolset=msvc-7.1 --variant=release --threading=multi --link=shared
> --with-system stage
> ...found 72 targets...
> ...updating 6 targets...
> compile-c-c++ bin.v2\libs\system\build\msvc-7.1\release\threading-multi\error_code.obj
> error_code.cpp
> I added the system\src\error_code.cpp to an empty project and can
> compiled it with success. So I guess there must be something wrong
> with the default compile options, but I donnot know how to fix it.

   I tried the same thing on my notebook and everything worked fine.
You can see the exact command and the corresponding output below.

   My guess is that there is something messed up on your end, most
likely related to your Platform SDK setup.

   Some ideas on how to debug this:

     * Run boost build with the -d+2 command and get the exact command
lines used to compile the .obj. Then compare those to the commands used
by your 'empty project'.

     * Run the cl.exe compiler with the /E option to get the
preprocessor output and see what exactly your compiler was complaining
about when it says 'illegal declaration of anonymous 'struct''.

Command used:
bjam system --toolset=msvc-7.1 --variant=release --threading=multi
--link=shared --with-system --stagedir=aaa stage

...found 72 targets...
...updating 13 targets...
MkDir1 bin.v2
MkDir1 bin.v2\libs
MkDir1 bin.v2\libs\system
MkDir1 bin.v2\libs\system\build
MkDir1 bin.v2\libs\system\build\msvc-7.1
MkDir1 bin.v2\libs\system\build\msvc-7.1\release
MkDir1 bin.v2\libs\system\build\msvc-7.1\release\threading-multi
    Creating library
and object bin.v2\libs\system\build\m
common.copy aaa\lib\boost_system-vc71-mt-1_35.dll
         1 file(s) copied.
common.copy aaa\lib\boost_system-vc71-mt-1_35.lib
         1 file(s) copied.
common.hard-link aaa\lib\boost_system-vc71-mt.lib
         1 file(s) copied.
...updated 13 targets...

   Hope this helps.

   Best regards,
     Jurko Gospodnetić

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at