title: Cython with Visual C++ Compiler?
body: <p>Once I've used Cython to generate a C file, how do I use the Visual C++ 2010 compiler to make an EXE?</p>
  
  <p>I've tried</p>
  
  <pre><code>cython.py Temp.py
  cl.exe /MD /I "%ProgramFiles%\Python 2.6\include" Temp.c /link
       /LibPath:"%ProgramFiles%\Python 2.6\libs"
  </code></pre>
  
  <p>but it says</p>
  
  <pre><code>LINK : fatal error LNK1561: entry point must be defined
  </code></pre>
  
  <p>and if I change the <code>/MD</code> option to <code>/MT</code> then I getTemp.c</p>
  
  <pre><code>LIBCMT.lib(crt0.obj) : error LNK2019:
    unresolved external symbol main referenced in function __tmainCRTStartup
  </code></pre>