Boost logo

Boost-Build :

From: Denis Bilenko (denis.bilenko_at_[hidden])
Date: 2005-12-05 13:08:08


Hi
I am trying to build Boost.Python examples (getting_started1 and 2) under
windows with BBv2

I tried 1.33.0, 1.33.1beta and lattest version of boost-build from cvs (though
I still use released version of boost, 1.33.1beta) and all I achieved is some
variation in bjam's error reports.

Here's a piece of bjam output:

% bjam --v2 msvc-7.1

msvc.link.dll bin\msvc-7.1\debug\getting_started2.so
bin\msvc-7.1\debug\getting_started2.lib
   Creating library bin\msvc-7.1\debug\getting_started2.lib and object

bin\msvc-7.1\debug\getting_started2.exp
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main
referenced in function _mainCRTStartup
bin\msvc-7.1\debug\getting_started2.so : fatal error LNK1120: 1 unresolved
externals

    call "D:\VisualStudio.NET2003\Vc7\bin\vcvars32.bat" >nul
link /NOLOGO /DEBUG /subsystem:console
/out:"bin\msvc-7.1\debug\getting_started2.so" /INCREMENTAL:NO
/IMPLIB:"bin\msvc-7.1\debug\getting_started2.lib"
/LIBPATH:"D:\Program Files\Python241\libs"
@"bin\msvc-7.1\debug\getting_started2.so.rsp"

...failed msvc.link.dll bin\msvc-7.1\debug\getting_started2.so

bin\msvc-7.1\debug\getting_started2.lib...
...removing bin\msvc-7.1\debug\getting_started2.lib
...failed updating 4 targets...
...updated 20 targets...

Why "subsystem:console"? why ".so"?

user-config.jam:
using python : 2.4 : "D:/Program Files/Python241" ;
using gcc ;
using msvc : 8.0 : "D:/VisualStudio8/VC/bin/cl.exe" ;
using msvc : 7.1 : "D:/VisualStudio.NET2003/VC7/bin/cl.exe" ;

jamfile (unchanged):
project : requirements <library>/boost/python//boost_python ;
python-extension getting_started1 : getting_started1.cpp ;
python-extension getting_started2 : getting_started2.cpp ;

project-root.jam:
path-constant BOOST_ROOT : D:/denis/code/boost_1_33_1 ;
use-project /boost : $(BOOST_ROOT) ;

There are some other issues:
1. Unusual big ammount of warnings in Boost.Python headers (with lattest
boost-build only)
2. bjam rebuilds everything from scratch all the time

Is it my problem or Boost.Python supposed to work with v1 only?

Thank you for your attention!


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