Boost logo

Boost Users :

Subject: Re: [Boost-users] Problems linking shared library with ASIO/System/Serialization/Python
From: Igor R (boost.lists_at_[hidden])
Date: 2011-11-21 11:16:16


> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net