title: PyArrayObject definition is missing
body: <p>I'm trying to compile some C code (CUDA) [1], which relies on Numpy package:</p>
  
  <pre><code>/cuda-convnet-vs-proj/src/util.cu(69): error : identifier "PyArrayObject" is undefined 
  </code></pre>
  
  <p>I installed Anaconda (on Windows), which includes Python 2.7 and Numpy package. 
  util.cu includes header util.cuh, which includes Python.h.  </p>
  
  <p>I'm not even sure if this is a problem in the code (missing definition or header file), or Visual Studio is not looking in the right place. </p>
  
  <p>I'm a beginner, how do I troubleshoot this? </p>
  
  <p>Here's the code that refers to PyArrayObject:</p>
  
  <pre><code>#include &lt;util.cuh&gt;
  using namespace std;
  
  MatrixV* getMatrixV(PyObject* pyList) {
      if (pyList == NULL) {
          return NULL;
      }
      MatrixV* vec = new MatrixV(); 
      for (int i = 0; i &lt; PyList_GET_SIZE(pyList); i++) {
          vec-&gt;push_back(new Matrix((PyArrayObject*)PyList_GET_ITEM(pyList, i)));
      }
      return vec;
  }
  </code></pre>
  
  <p>And util.cuh header contains the line:</p>
  
  <pre><code>#include &lt;Python.h&gt;
  </code></pre>
  
  <p>[1] <a href="http://www.asiteof.me/archives/50" rel="nofollow">http://www.asiteof.me/archives/50</a></p>