NEVER MIND: new problem
Chris Fonnesbeck
spam at fisher.forestry.uga.edu
Sat May 25 16:07:28 EDT 2002
I finally realized the trouble: I forgot to include the
Py_Initialize() call. However, when I do this, the compiled code
segfaults when I call Py_Array_FromDims():
#include <Python.h>
#include <Numeric/arrayobject.h>
int main() {
PyArrayObject *parray;
int dimensions[1];
Py_Initialize();
dimensions[0]=10;
parray = (PyArrayObject
*)PyArray_FromDims(1,dimensions,PyArray_DOUBLE);
Py_Finalize();
return 0;
}
More information about the Python-list
mailing list