[C++-sig] boost::python PyUnicodeUCS4_FromEncodedObject

Stefan Seefeld seefeld at sympatico.ca
Thu Mar 27 15:58:02 CET 2008

Venkatraman S wrote:

> $ldd myClass.so
>         libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00db8000)
>         libm.so.6 => /lib/tls/libm.so.6 (0x002b3000)
>         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00eb7000)
>         libpthread.so.0 => /lib/tls/libpthread.so.0 (0x0057a000)
>         libc.so.6 => /lib/tls/libc.so.6 (0x00b6f000)
>         /lib/ld-linux.so.2 (0x00712000)

Why is boost_python not part of the dependencies ? Are you linking to 
the static version ?

> _*setup.py*_
> ---------------
> from distutils.core import setup
> from distutils.extension import Extension
> setup(name="myvaarg",ext_modules=[Extension("myvaarg",["sample.cpp"],libraries=["boost_python"])])
> $python setup.py build

Can you print out the compile and link commands this generates ? I'm 
using distutils myself, but found its extension handling limited and 
broken, and so have reimplemented the 'build_ext' command. I wouldn't be 
surprized if distutils was causing the error you are experiencing.



       ...ich hab' noch einen Koffer in Berlin...

More information about the Cplusplus-sig mailing list