[Numpy-discussion] C-API Documentation?

Bill Baxter wbaxter at gmail.com
Mon Sep 24 14:03:48 EDT 2007


On 9/25/07, Thomas Schreiner <tmp-numpy at tschreiner.org> wrote:
>
> 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-1.0.3.1.win32-py2.4.
> > 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.


Look for import_array1 instead then.

--bb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070925/31588b5f/attachment.html>


More information about the NumPy-Discussion mailing list