On Wed, 17 Aug 2005 14:29:43 +0800 Simon Newton wrote: > The C program is being built like so: > > gcc main.c -c -I-I/usr/include -I/usr/include -I/usr/include/python2.4 > -I/usr/include/python2.4 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes > gcc main.o -L/usr/lib -lpthread -ldl -lutil > -lm /usr/lib/python2.4/config/libpython2.4.a -o main
Try to link libpython as a library (as it should be), not as an object module: gcc main.o -L/usr/lib -lpthread -ldl -lutil -lm -lpython2.4 -o main -- jk -- http://mail.python.org/mailman/listinfo/python-list