
6 Oct
2010
6 Oct
'10
8:48 p.m.
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