Ok I found out how to do it using: gcc -Ic:\python24\include -Lc:\python24\libs --shared example_wrap.c example.c -lpython24 -o _example.pyd but now I get a "dynamic module does not define init function" error when I try to import it into python.. Anyone?? Soren