Boost logo

Boost :

From: alust_at_[hidden]
Date: 2001-03-05 02:30:43


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, 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
$ 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: ./ 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,

Boost list run by bdawes at, gregod at, cpdaniel at, john at