Re: [Numpy-discussion] compiling c extension

2008-01-22 Thread Danny Chan
Yes, that is not the problem. The compiling of the source file works fine, it is when the linker tries to create the shared library file that something blows up. Lou Pecora [EMAIL PROTECTED] schrieb: Did you include arrayobject.h and call import_array() in the initialization function, after

Re: [Numpy-discussion] compiling c extension

2008-01-22 Thread Danny Chan
Ha, found the problem! I thought I had included arrayobject.h and import_array correctly, but due to the preprocessor it wasn't defined correctly! Danny Chan [EMAIL PROTECTED] schrieb: Yes, that is not the problem. The compiling of the source file works fine, it is when the linker tries to

Re: [Numpy-discussion] compiling c extension

2008-01-21 Thread Lou Pecora
Did you include arrayobject.h and call import_array() in the initialization function, after the call to Py_InitModule() ? --- Danny Chan [EMAIL PROTECTED] wrote: Hi! 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