[C++-sig] boost.python error

Ricardo Kirkner ricardokirkner at gmail.com
Mon Nov 7 14:28:00 CET 2005


Thank you all for your help.. I finally managed to get the library to
compile. I don't quite know what it was, but I am sure it had
something to do with Jamfile/Jamrules/boost-build.jam files
configuration.

Regards,

Ricardo Kirkner

On 11/7/05, Hans Meine <meine at kogs1.informatik.uni-hamburg.de> wrote:
> On Sunday 06 November 2005 17:13, Ricardo Kirkner wrote:
> > ImportError: dynamic module does not define init function (initOpalMath)
> You could check for that in the source (remember the mentioned macro) and in
> the .o file with "nm".
>
> > To build using g++ I use
> >
> > g++ -c -Wall -fPIC -I/usr/include/boost -I/usr/include/python2.3 -Isrc
> > -o OpalMath.o OpalMath.cpp
> > g++ -shared -fPIC -Wl --no-undefined --warn-once -L/usr/lib
> > -lpython2.3 -lboost_python -DBOOST_PYTHON_DYNAMIC_MODULE -o
> > OpalMath.so OpalMath.o
> Note that -DBOOST_PYTHON_DYNAMIC_MODULE defines a preprocessor symbol.  That's
> a noop when linking.  (Probably you wanted to add that within the "g++
> -c ..." line.)
>
> --
> Ciao, /  /
>      /--/
>     /  / ANS
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>



More information about the Cplusplus-sig mailing list