[Numpy-discussion] calling numpy from C++

Edward_A._Damerau at dadebehring.com Edward_A._Damerau at dadebehring.com
Fri Jan 19 14:09:47 CST 2001


I've got Python 20 and numerical python installed and running, i.e., I can
run python scripts and call import module Numerical and use arrays,etc.

I've also been successful at calling python scripts from C/C++ code (MSVC++
6.0) - Py_Initialize(), Py_BuildValue() etc. and building the de-bug
version of python20.dll (python20_d.dll) so I can debug-step through the
code.

However, I can't seem to be able to call numpy functions from C/C++ -
PyArray_FromDims(), etc.  My code will compile and link but, at runtime, I
get an exception error.

It seems that either I need to create a numpy.dll that will live in
winnt/system32 or somehow need to modify python20.dll to include the numpy
functions.

How do I do that?

Thanks.







More information about the Numpy-discussion mailing list