Add library to link against in Jamfile (building a Boost.python extension)

Hello, I'm writing a Boost.python extension, that needs the Boost.thread library. I use the Jamfiles from Boost.python example (works, except of linking), and need to add the thread library. How can I do that? Jamfiele: ---------------------------------------------- # This is the top of our own project tree project-root ; # Include definitions needed for Python modules import python ; # ----- getting_started1 ------- # Declare a Python extension called getting_started1 extension getting_started1 : # sources getting_started1.cpp # requirements and dependencies for Boost.Python extensions <template>@boost/libs/python/build/extension ; ------------------------------------------------- Thanks a lot Regards Alexander

Alexander Eisenhuth wrote:
Hello,
[snip]
Jamfiele: ---------------------------------------------- # This is the top of our own project tree project-root ;
# Include definitions needed for Python modules import python ;
# ----- getting_started1 -------
# Declare a Python extension called getting_started1 extension getting_started1 : # sources getting_started1.cpp
# requirements and dependencies for Boost.Python extensions <template>@boost/libs/python/build/extension ; ------------------------------------------------- Thanks a lot Regards Alexander
you could try the following... extension getting_started1 : getting_started1.cpp : <runtime-link>dynamic # this is optional .so vs .a I think? <linkflags>-L/path/to/boost/compiled/libs <find-library>boost_thread-gcc ; By the way I think you should adress this message to the Boost build list. Hope this helps! p.s. remember to set your python_version and python_root if they are not already correct -- Sébastien Fortier
participants (2)
-
Alexander Eisenhuth
-
Sebastien Fortier