[C++-sig] Building boost::python on Ubuntu - now linking problem

Hans Meine meine at informatik.uni-hamburg.de
Tue Jan 8 09:52:12 CET 2008


Am Dienstag, 08. Januar 2008 08:58:25 schrieb Simon Pickles:
> g++ -L/usr/local/boost_1_34_1/stage/lib -o bin/Debug/embeddedTest
> obj/Debug/main.o -lpthread -lpython2.5
> obj/Debug/main.o: In function `_object*
> boost::python::incref<_object>(_object*)':
> /usr/local/boost_1_34_1/boost/python/refcount.hpp:16: undefined
> reference to `_Py_RefTotal'

Maybe the wrong python lib is picked up - are there multiple python versions 
installed?  What does "locate libpython" tell you?

Ciao, /  /
     /--/
    /  / ANS



More information about the Cplusplus-sig mailing list