21 Nov
2011
21 Nov
'11
4:16 p.m.
I'm trying to build a shared library on Linux, that will become a Python module via Boost.Python. That library also requires functionality from Boost.ASIO and Boost.Serialization. I'm using Boost 1.46.1, and gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4). I'm getting undefined errors related to Boost.System during the compilation:
g++ -L/usr/local/lib/ -shared python_client.o network_interface.o geometry_model_api.o client.o -o python_client.so -lpython2.7 -lboost_python -lboost_serialization -lboost_thread -lQtCore -lpthread -Wl,-no-undefined network_interface.o: In function `get_system_category':
You should link with Boost.System: -lboost_system