[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
result of a macro expansion
lex\Scanners.c(6878) : error C2059: syntax error : 'else'
lex\Scanners.c(6888) : error C2059: syntax error : '}'
lex\Scanners.c(6902) : error C2121: '#' : invalid character : possibly the
result of a macro expansion
lex\Scanners.c(6902) : error C2121: '#' : invalid character : possibly the
result of a macro expansion
soft Visual Studio 9.0\VC\BIN\amd64\cl.exe"' failed with exit status 2

Anyone run into similar problems?
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


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):

/* MSVC defines _WINxx to differentiate the windows platform types

   Note that for compatibility reasons _WIN32 is defined on Win32
   *and* on Win64. For the same reasons, in Python, MS_WIN32 is
   defined on Win32 *and* Win64. Win32 only code must therefore be
   guarded as follows:
#if defined(MS_WIN32) && !defined(MS_WIN64)
   Some modules are disabled on Itanium processors, therefore we
   have MS_WINI64 set for those targets, otherwise MS_WINX64
*/
#ifdef _WIN64
#define MS_WIN64
#endif


-- 
Lisandro Dalcin
---
CIMEC (UNL/CONICET)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1016)
Tel/Fax: +54-342-4511169
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel