使用以下命令编译后:
cython test_gsl.pyxgcc -m64 -pthread -fno-strict-aliasing -Wstrict-prototypes -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include -I/vol/dalek/anaconda/include/python2.7 -c test_gsl.c -o build/temp.linux-x86_64-2.7/test_gsl.ogcc -pthread -shared -L/usr/lib/ -L/vol/dalek/anaconda/lib -o test_gsl.so build/temp.linux-x86_64-2.7/test_gsl.o -lpython2.7 -lgsl -lgslcblas -lm
如果我
test_gsl不带python导入
pyximport,则效果很好。由于
pyximport不支持与外部库的链接。



