Hi everyone,
thanks to hints on this list I've now got a working build of boost.python.
I built the hello world exmaple (using the jam-file) and ran the
testsuite with success.
Now I want to get used to boost.python by exporting a few functions of a
C++ lib I'm working on. This lib uses make as
Oh crap, the command that links is of course:
$ g++ -shared -Wl,-soname,"libhello.so" -L/usr/local/lib -lboost_python
-o libhello.so hello.o
But I get the undefined symbols nevertheless:
U PyString_Type
w _Jv_RegisterClasses
U _Py_NoneStruct
U _Unwind_Resume@@GCC_3.0
You need to link with libpython as well. libpython should resolve these.
On Wed, Oct 6, 2010 at 5:43 AM, Philipp Münzel wrote:
> Oh crap, the command that links is of course:
>
> $ g++ -shared -Wl,-soname,"libhello.so" -L/usr/local/lib -lboost_python
> -o libhello.so hello.o
>
> But I get the un
I added -lpython2.6 to the linker command, but I didn't change anything.
Obviously, the missing symbols are boost symbols and not python symbols,
since their names
_ZN5boost6python6detail11init_moduleEPKcPFvvE
clearly refer boost.
I built boost_python with the following command:
sudo ./bjam insta