Embedding Python in C, undefined symbol: PyExc_FloatingPointError

Simon Newton lists at nomis52.net
Wed Aug 17 05:53:16 EDT 2005


On Wed, 2005-08-17 at 09:52 +0200, "Martin v. Löwis" wrote:
> Simon Newton wrote:
> > 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
> 
> No. You need to export the Python symbols from your executable to
> extension modules. IOW, you need to pass
> 
> -Xlinker -export-dynamic
> 
> to the gcc invocation.

Thanks Martin,

-export-dynamic fixed it.

Simon




More information about the Python-list mailing list