Compile Error: PyArrayObject is undefined

This is the place for queries that don't fit in any of the other categories.

Compile Error: PyArrayObject is undefined

Postby michaelsb123 » Mon Dec 30, 2013 2:23 am

I'm trying to compile some C code, which relies on Numpy package:

/cuda-convnet-vs-proj/src/util.cu(69): error : identifier "PyArrayObject" is undefined

I installed Anaconda (on Windows), which includes Python 2.7 and Numpy 1.8 package. util.cu includes header util.cuh, which includes Python.h.

I did some googling, and it appears PyArrayObject should be defined in ndarraytypes.h, however I don't see it there.

I'm a beginner, how do I troubleshoot this?
Last edited by Mekire on Mon Dec 30, 2013 2:39 am, edited 1 time in total.
Reason: First post lock.
michaelsb123
 
Posts: 2
Joined: Mon Dec 30, 2013 2:22 am

Re: Compile Error: PyArrayObject is undefined

Postby michaelsb123 » Mon Dec 30, 2013 5:25 pm

Solved by including ndarraytypes.h directly. For some reason, Python.h didn't include it.
michaelsb123
 
Posts: 2
Joined: Mon Dec 30, 2013 2:22 am


Return to General Coding Help

Who is online

Users browsing this forum: RodionGork and 7 guests