undefined reference to `boost::system::get_system_category()'
symptoms that boost_system was not used at the linking phase
at least on my system (mac OSX leopard with apple gcc and boost 1.43.0)
solution: add the dependency
This commit is contained in:
Jean-Manuel Caba 2010-07-12 20:13:51 +00:00
parent 201902897f
commit de5152941c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ FIND_PACKAGE(PythonSitePackages REQUIRED)
SET(Boost_USE_STATIC_LIBS ON)
MESSAGE(STATUS "Always uses Boost static libraries.")
FIND_PACKAGE(Boost 1.32.0 COMPONENTS program_options filesystem python REQUIRED)
FIND_PACKAGE(Boost 1.32.0 COMPONENTS program_options filesystem system python REQUIRED)
IF (Boost_FOUND)
MESSAGE(STATUS "Found Boost.Python libraries in ${Boost_INCLUDE_DIR} as ${Boost_LIBRARIES}")
FIND_PACKAGE(PythonLibs REQUIRED)