title: How to rectify unknown type name 'PyTypeObject' error when using Python.h?
body: <p>I used Python.h to write the following program</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;Python.h&gt;
  
  int main()
  {
  
      return 0;
  }
  </code></pre>
  
  <p>i get the following error</p>
  
  <pre><code>81  1   C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\dictobject.h    [Error] unknown type name 'PyTypeObject'
  81  1   C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\dictobject.h    [Error] unknown type name 'PyTypeObject'
  </code></pre>
  
  <p>multiple times
  and</p>
  
  <pre><code>35  5   C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\funcobject.h    [Error] unknown type name 'vectorcallfunc'
  </code></pre>
  
  <p>one time.</p>
  
  <p>also these</p>
  
  <pre><code>254 35  C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\cpython\abstract.h  [Error] unknown type name 'Py_buffer'
  175 53  C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\cpython\abstract.h  [Error] unknown type name '_Py_Identifier'
  </code></pre>
  
  <p>when compiling it also opens objimpl.h where it mentions a line where the word 'PyTypeObject' is present</p>
  
  <p>I use DevCpp-gcc-4.9.2 </p>