Hi,

On 24/07/12 09:02, Andreas Tille wrote:
> $ gcc-4.7 -I/usr/include/python2.6 -c python-code/support-code/_sparsemat.cpp 
> -std=c++0x
> python-code/support-code/_sparsemat.cpp: In function ‘void 
> __Pyx_RaiseArgtupleInvalid(const char*, int, Py_ssize_t, Py_ssize_t, 
> Py_ssize_t)’:
> python-code/support-code/_sparsemat.cpp:5164:95: error: unable to find string 
> literal operator ‘operator"" PY_FORMAT_SIZE_T’
> python-code/support-code/_sparsemat.cpp: In function ‘void 
> __Pyx_RaiseNeedMoreValuesError(Py_ssize_t)’:
> python-code/support-code/_sparsemat.cpp:5424:52: error: unable to find string 
> literal operator ‘operator"" PY_FORMAT_SIZE_T’
> python-code/support-code/_sparsemat.cpp: In function ‘void 
> __Pyx_RaiseTooManyValuesError(Py_ssize_t)’:
> python-code/support-code/_sparsemat.cpp:5430:73: error: unable to find string 
> literal operator ‘operator"" PY_FORMAT_SIZE_T’
> $ gcc-4.6 -I/usr/include/python2.6 -c python-code/support-code/_sparsemat.cpp 
> -std=c++0x
> 
> I did some giggling and noticed that the error above occured in some
> threads were some solution was promised with cython 0.16.  So I also
> tried cython from experimental and can confirm that the problem above
> remains identical - so cython 0.16 does not seem to be the solution.

As it seems, the fix has been merged after the 0.16 release. The patch to solve
this in cython can be found at [1].

Until this is fixed one can try to add spaces between PY_FORMAT_SIZE_T and the
quotation marks in the file generated by cython.

Kind regards

[1] https://github.com/cython/cython/pull/109
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to