This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: finding the library in which symbol is defined.
Jeffrey Holle <jeff.holle@verizon.net> writes:
> Examples of the specific linker errors that are troubling me:
>
> /usr/local/lib/libboost_python.so.1.31.0: undefined reference to
> `PySequence_DelSlice'
> /usr/local/lib/libboost_python.so.1.31.0: undefined reference to
> `PyNumber_InPlaceXor'
> ../cppTest/libUMLModel.so: undefined reference to `PyInt_FromLong'
Where are those symbols defined on your system?
If they are defined in, e.g, /usr/lib/libpython.so.*, have you tried
adding -lpython to your link command?
What is the output of
objdump -p /usr/local/lib/libboost_python.so.1.31.0
?
Ian