building python shared lib for embedded python project

Martin v. Löwis martin at v.loewis.de
Wed Dec 4 15:34:47 EST 2002


David Voswinkel <d.voswinkel at centrium.de> writes:

> 5     ld -shared -export-dynamic -L/usr/lib -lnsl -ldl -lreadline -lieee 
> -lpthread -lutil -lutil -lm -lc  -o libpython2.so.0.0 *.o 

That's an error. Never use ld to link, use cc instead.

> can't load plugin: ./libpython2.so: undefined symbol: stat64
> 
> maybe someone on the list has an idea to resolve the symbol problem.

You need to link with the C library. cc will do this for you.

Regards,
Martin



More information about the Python-list mailing list