Embedded Python 2.1 and AIX
hcsgss at texlife.com
Wed Jul 18 15:41:39 EDT 2001
>Must you use gcc? I suggest you try the simplest test program
>that illustrates this problem, and build it with the compiler
>tools that come with the platform, with the options as specified
> Donn Cave, donn at u.washington.edu
Thanks for replying....
Yes, we have to use gcc, we have no xlC for this platform.
The very simplest case (or nearly):
int main( void )
gcc -c -g -DAIX -I$(PYTHONINC) test.c
test: test.o libtest.o
rm -f test
$(CC) -o test test.o -L$(PYTHONLIB) -Wl -lpython2.1 -lpthread -lm
I also tried it adding -Wl,-bE:python.exp -Wl,-brtl -ldl flags to the link
step. (which are the flags used for compiling Python itself in the Makefile.
More information about the Python-list