« Return to Thread: Problem building python helloworld with bjam

Problem building python helloworld with bjam

by FoxMulder900 :: Rate this Message:

Reply to Author | View in Thread

Hello, I am an experienced c++ and python programmer, however I am new at using boost. I am trying to get a simple boost python program to compile - following the tutorial here http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/hello.html  my problem is that when i run bjam on the given example, i get the following output:

C:\Documents and Settings\New user\Desktop\BoostTest>bjam
Jamroot:14: in modules.load
*** argument error
* rule use-project ( id : where )
* called with: ( boost C:/Program Files/boost/boost_1_35_0; project : requiremen
ts <library>/boost/python//boost_python )
* extra argument C:/Program
C:/Program Files/boost/boost-build/build\project.jam:956:see definition of rule
'use-project' being called
C:/Program Files/boost/boost-build/build\project.jam:312: in load-jamfile
C:/Program Files/boost/boost-build/build\project.jam:68: in load
C:/Program Files/boost/boost-build/build\project.jam:170: in project.find
C:/Program Files/boost/boost-build\build-system.jam:248: in load
C:\Program Files\boost\boost-build/kernel\modules.jam:261: in import
C:\Program Files\boost\boost-build/kernel/bootstrap.jam:132: in boost-build
C:\Documents and Settings\New user\Desktop\boost-build.jam:11: in module scope

I have installed boost using the installer, I have downloaded boost-build and edited the user-config.jam to contain the following:

#  Configure msvc (default version, searched in standard location
#  and PATH).
using msvc ;

#  Python configuration
using python : 2.5 : C:/Python25 ;

I have also modified the Jamroot file in the example directory to contain:
use-project boost
  C:/Program Files/boost/boost_1_35_0;

If anyone can point out what I am doing incorrectly it would be much appreciated!

 « Return to Thread: Problem building python helloworld with bjam