From: David Abrahams (abrahams_at_[hidden])
Date: 2001-03-05 08:20:38
It looks like you may be missing the boost python library itself. If you are
using the latest released boost version, that's the one called libpycpp.a
(in the next release, it will be libboost_python.a).
Also, I'm nearly certain that the documentation is still out-of-date. You
might try building one of the examples in examples directory.
Ralf, have you any pointers for this gentleman?
----- Original Message -----
Sent: Monday, March 05, 2001 2:30 AM
Subject: [boost] Newbie question: how to compile python modules?
> 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:
> 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,
> 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