title: Making Cython work with Python 3.4 on Anacondas, Windows 7 64-bit
body: <p>I have just installed Python 3.4 on my Windows 7 64-bit machine, using Anaconda/Condas.</p>
  
  <p>When I run the <a href="http://docs.cython.org/src/quickstart/build.html#building-a-cython-module-using-distutils" rel="nofollow">"hello world" cython example</a> I get this error:</p>
  
  <pre><code>[py34] C:\Users\Jon\Documents\GitHub\CythonFunctions\cython_funcs&gt;python setup.py build_ext --inplace
  running build_ext
  building 'cython_funcs.hello' extension
  C:\Anaconda\envs\py34\MinGW\bin\gcc.exe -mdll -O -Wall -IC:\Anaconda\envs\py34\include -IC:\Anaconda\envs\py34\include -c hello.c -o build\temp.win-amd64-3.4\Release\hello.o
  writing build\temp.win-amd64-3.4\Release\hello.def
  C:\Anaconda\envs\py34\MinGW\bin\gcc.exe -shared -s build\temp.win-amd64-3.4\Release\hello.o build\temp.win-amd64-3.4\Release\hello.def -LC:\Anaconda\envs\py34\libs -LC:\Anaconda\envs\py34\PCbuild\amd6
  4 -lpython34 -lmsvcr100 -o C:\Users\Jon\Documents\GitHub\CythonFunctions\cython_funcs\cython_funcs\hello.pyd
  build\temp.win-amd64-3.4\Release\hello.o:hello.c:(.text+0x314): undefined reference to `__imp__PyThreadState_Current'
  build\temp.win-amd64-3.4\Release\hello.o:hello.c:(.text+0x493): undefined reference to `__imp__Py_NoneStruct'
  build\temp.win-amd64-3.4\Release\hello.o:hello.c:(.text+0x97b): undefined reference to `__imp_PyExc_ImportError'
  collect2.exe: error: ld returned 1 exit status
  error: command 'C:\\Anaconda\\envs\\py34\\MinGW\\bin\\gcc.exe' failed with exit status 1
  </code></pre>
  
  <p>From searching stackoverflow and google, this error occurs when the gcc and python versions are not both either 32 bit or 64 bit.</p>
  
  <p>I have checked that my Python is 64 bit. The MinGW that I have, as can be seen from the path below, was part of my Python installation. How can I check if it is 64 bit or not? Or could this error be due to something else?</p>
  
  <p>Update:</p>
  
  <p>Strangely, the Ipython cythonmagic command here works fine:</p>
  
  <p><a href="http://docs.cython.org/src/quickstart/build.html?highlight=cythonmagic" rel="nofollow">http://docs.cython.org/src/quickstart/build.html?highlight=cythonmagic</a></p>