Boost logo

Boost Users :

Subject: Re: [Boost-users] [Python] Unable to use static library of boost.python due to undefined symbols
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-10-06 16:48:59


Philipp Münzel wrote:

> $ g++ -I/usr/local/include -I/usr/include/python
> -DBOOST_PYTHON_STATIC_LIB -fpic -c -o hello.o
> hello.cpp
> $ g++ -shared -Wl,-soname,"libhello.so" -L/usr/local/lib -lboost_python
> -fpic -o libhello.so hello.o

In general, static libraries should be specified on the command line after
the object files that use symbols in them. Do things work better if
you move -lboost_python to the end?

- Volodya


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