Python使用ctype调用C链接库

2014-11-24 14:06:10 · 作者: · 浏览: 2

编写一个动态链接库ctype_test.c,


编译


gcc -o ctype.so -shared -fPIC ctype_test.c


在python下试用一下吧