python – ctypes错误找不到AttributeError符号,OS X 10.7.5

python – ctypes错误找不到AttributeError符号,OS X 10.7.5

我在C上有一个简单的测试函数: #include stdio.h#include string.h#include stdlib.h#include locale.h#include wchar.hchar fun() { printf( %i, 12 ); return y;} 编译: gcc -o test.so -shared -fP