[Numpy-discussion] compiling c extension
Mon Jan 21 11:03:29 CST 2008
Did you include arrayobject.h and call import_array()
in the initialization function, after the call to
--- Danny Chan <firstname.lastname@example.org> wrote:
> I am trying to compile a c extension that uses numpy
> arrays on windows. I can compile the extension file,
> but once I get to the linking stage I get unresolved
> references to PyArray_API and import_array. Can
> anyone help me with the correct linker flags?
> Thanks, Danny
> more undefined references to `PyArray_API' follow
> undefined reference to `import_array'
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
-- Lou Pecora, my views are my own.
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
More information about the Numpy-discussion