On May 24, 2008, at 5:07 AM, Robin Becker wrote:
> I tried downloading and testing 0.9.6.14 on my win32 xp (with Visual C
> 7) and Python 2.5.
>
> I get an error in the Demos folder
>
> C:\Python\devel\Cython-0.9.6.14\Demos>python setup.py build_ext --
> inplace
> running build_ext
> building 'primes' extension
> C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c
> /nologo /Ox /MD /W3 /GX /DNDEBUG -Ic:\python\includ
> e -Ic:\python\PC /Tcprimes.c /Fobuild\temp.win32-2.5\Release
> \primes.obj
> primes.c
> primes.c(99) : error C2054: expected '(' to follow 'inline'
> primes.c(99) : error C2085: '__Pyx_PyObject_Append' : not in formal
> parameter list
> primes.c(99) : error C2143: syntax error : missing ';' before '{'
> primes.c(287) : warning C4013: '__Pyx_PyObject_Append' undefined;
> assuming extern returning int
> primes.c(287) : warning C4047: '=' : 'PyObject *' differs in levels of
> indirection from 'int'
> primes.c(566) : warning C4244: 'return' : conversion from 'long' to
> 'unsigned char', possible loss of data
> primes.c(581) : warning C4244: 'return' : conversion from 'long' to
> 'unsigned short', possible loss of data
> primes.c(596) : warning C4244: 'return' : conversion from 'long' to
> 'char', possible loss of data
> primes.c(611) : warning C4244: 'return' : conversion from 'long' to
> 'short', possible loss of data
> primes.c(656) : warning C4244: 'return' : conversion from 'long' to
> 'char', possible loss of data
> primes.c(671) : warning C4244: 'return' : conversion from 'long' to
> 'short', possible loss of data
> error: command '"C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\bin\cl.exe"' failed with exit status 2
>
> inspection of primes.c reveals that INLINE is defined thusly
>
>> #ifdef __GNUC__
>> #define INLINE __inline__
>> #elif _WIN32
>> #define INLINE __inline
>> #else
>> #define INLINE
>> #endif
>
>
>
> and there are references to INLINE, however on line 99 I see this
>
>> static inline PyObject* __Pyx_PyObject_Append(PyObject* L,
>> PyObject* x) {
>
> is this a bug or am I doing soemthing wrong?
No, this was a bug and has since been fixed:
http://hg.cython.org/cython-devel/rev/aeb71e54b78a
- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev