Re: [Cython] error LNK2001: unresolved external symbol PyInit_init

2014-08-21 Thread Lisandro Dalcin
On 20 August 2014 20:25, Sturla Molden wrote: > To build a Python extension for Win64 you must define the symbol MS_WIN64, > typically -DMS_WIN64. > Sturla, isn't this supposed to be handled in pyconfig.h (at least when using MSVC) ? I see these lines in PC/pyconfig.h (from Python sources): /* M

[Cython] build failure on windows with 0.21b1 windows py27 x64

2014-08-21 Thread Ian Bell
A snippet of my failure: lex\Scanners.c(6876) : error C2121: '#' : invalid character : possibly the result of a macro expansion lex\Scanners.c(6876) : error C2146: syntax error : missing ')' before identifier 'ifdef' lex\Scanners.c(6876) : error C2121: '#' : invalid character : possibly the resul