Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-08-03 18:12:06


The first thought that springs to mind is that you may be using a version of
Boost.Python that's newer than your library. Did the library come with your
Linux distribution/in some RPM, or did you build it yourself from the same
boost sources against which you're compiling your module?

-Dave

----- Original Message -----
From: "No Name" <nathanoj_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, August 03, 2001 2:19 PM
Subject: [boost] Boost.Python and ImportError

> When I try linking using libboost_python.a
> rather than the object files, I get an ImportError:
> undefined symbol.
>
>
>>g++ -I/home/Jon/boost_1_23_0 -I/usr/local/include/python2.1 -fPIC -ftemp
late-depth-21 -g -c getting_started2.cpp
> >>g++ -shared libboost_python.a getting_started2.o -o getting_started2.so
> >>python tgs2.py
> Traceback (most recent call last):
> File "tgs2.py", line 1, in ?
> from getting_started2 import *
> ImportError: ./getting_started2.so: undefined symbol:
_ZNK5boost6python6detail10class_base16instance_deallocEP7_object
> >>c++filt _ZNK5boost6python6detail10class_base16instance_deallocEP7_object
>
> boost::python::detail::class_base::instance_dealloc(_object*) const
>
> The tgs2.py script is just the test within getting_started2.py
> taken out of the doc-string.
>
> I'm using linux_gcc.mak.
> >>gcc --version
> 3.0
> I also tried with gcc version 2.96 and got the same problem.
>
> >>ar -V
> 2.10.91
> I also tried with ar version 2.11.2.
>
> I tried this with Python 1.5.2, 2.1.1, and 2.2a1.
>
> This is under Redhat 7.1.
>
> Thank for any help you can give,
> Jonathan Hudson
>
>
> No Name
> e-mail: nathanoj_at_[hidden]
>
>
> The most personalized email addresses available!
> at: http://www.2ndmail.com
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk