[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-cpp-sig
Subject:    [C++-sig] boost.python error
From:       ricardokirkner () gmail ! com (Ricardo Kirkner)
Date:       2005-11-07 13:28:00
Message-ID: 5e44108d0511070528w31feecb2nbd0e34d79e14a0ca () mail ! gmail ! com
[Download RAW message or body]

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
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic