[Numpy-discussion] linking Python, GSL and mysql
o.mekkaoui at free.fr
Fri Jul 11 02:45:52 CDT 2003
I used Numeric, GSL and mysql to create some C python extension.
The objective is to make requests and after are stocked in a python array.
So this work fine with python1.5 and Numeric17 using:
gcc -c GnoStructTC.c -DHAVE_CONFIG_H
gcc -shared GnoStructTC.o -lgsl -lgslcblas -lmysqlclient -o GnoStructTC.so
Now, with Python 2.2 and Numeric22 : this don't work (default
segmentation) and I can't create my array
On other hand, if I just create simple array using
gcc -c GnoStructTC.c -DHAVE_CONFIG_H -I/usr/include/python2.2
gcc -shared GnoStructTC.o -o GnoStructTC.so
there are no problem.
Perhaps there are some mistakes in the compilation or a conflit between
Numeric and GSL.
Thanks in advance.
More information about the Numpy-discussion