First page Back Continue Last page Overview Graphics

Simple Example: Compiling C Prog

Compiling:

bernd@venus $ gcc -fPIC -c example.c example_wrap.c -I/usr/include/python3.4

Creating the so file:

bernd@venus $ ld -shared example.o example_wrap.o -o _example.so

Attention: Underscore is important! NO file example.so should be in the directory!!!