[Numpy-discussion] C-API Documentation?

Thomas Schreiner tmp-numpy@tschreiner....
Mon Sep 24 12:56:32 CDT 2007

Andrew Straw schrieb:
> Thomas Schreiner wrote:
>> Am I doing anything wrong in this program? It's crashing immediately 
>> after the "before" line, using Borland C++ Builder 6 and 
>> numpy-
> You have to call import_array() before using the C API.

Thanks a lot, that was the problem. There still seems to be a bug in
#define import_array():
In my version of __multiarray_api.h, this line ends with "return;", 
which my compiler doesn't accept. If I replace it by "return(0);" it's 
perfectly fine.


More information about the Numpy-discussion mailing list