[C++-sig] Problems with compiling with 'Hello World' from Boost::python

Roman Yakovenko roman.yakovenko at gmail.com
Fri Sep 7 21:43:53 CEST 2007


On 9/7/07, Martin Rosekeit <martin.rosekeit at freenet.de> wrote:
>
> Moin, moin, group,
>
> I have problems to compile the 'Hello World' from Boost::python (
> http://www.boost.org/libs/python/doc/tutorial/doc/html/index.html).



It is a must to build Boost.Python using bjam, but after this you can switch
to your favorite build environment.

Here is my SCONS build script for very simple use case (one cpp file):

SharedLibrary( target=r'enums'
    , source=[
r'/home/roman/language-binding/sources/pyplusplus_dev/unittests/temp/enums.cpp'
]
    , LIBS=[ r"boost_python" ]
    , LIBPATH=[ r"",r"/home/roman/boost_cvs/libs/python/build/bin-stage" ]
    , CPPPATH=[
r"/home/roman/boost_cvs",r"/usr/include/python2.4",r"/home/roman/language-binding/sources/pyplusplus_dev/unittests/data"
]
    , CCFLAGS=[  ]
    , SHLIBPREFIX=''
    , SHLIBSUFFIX='.so'
)



-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070907/3d935274/attachment.htm>


More information about the Cplusplus-sig mailing list