gcc -c A.c
gcc -I /usr/include/python2.7/ A_wrap.c
gcc -shared A_warp.o A.o -o _A.so
import _A.so
if
gcc -shared A_warp.o A.o -o A.so
>>> import A
then Error:
dynamic module does not define init function
Note!!!: _A.so instead of A.so
see: http://www.swig.org/Doc1.3/Python.html