I'm not sure what u mean... I tried linking libpython2.2.a into the shared library but it didn't fix the problem. My sample (posted after my original post) is only one C file and has the same problem i've been having.