|
Boost : |
From: alust_at_[hidden]
Date: 2001-03-05 02:30:43
Hi!
Sorry for a silly question, but this is really a problem for me now.
I tried to make a simple python module based on example from
http://www.boost.org/libs/python/doc/example1.html, but with no
success. That's the full protocol:
$ g++ -fPIC -O2 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c hello.cpp
$ gcc -shared -lc hello.o hello.so
$ python
Python 1.5.2 (#0, Apr 23 2000, 21:58:44) [GCC 2.95.2 20000313 (Debian
GNU/Linux)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import hello
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: ./hello.so: undefined symbol:
instance_dealloc__CQ45boost6python6detail10class_baseP7_object
Could someone be so kind to explain what's wrong here?
My platform is:
$ uname -a
Linux aiu 2.4.0 #1 Thu Feb 8 15:28:27 YEKT 2001 i686 unknown
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
Thanks in advance,
Alexei
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk