Embedding Python in C, undefined symbol: PyExc_FloatingPointError

en.karpachov at ospaz.ru en.karpachov at ospaz.ru
Wed Aug 17 12:16:25 CEST 2005

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

gcc main.o -L/usr/lib  -lpthread -ldl  -lutil -lm -lpython2.4 -o main


More information about the Python-list mailing list