error: unable to find string literal operator ‘operator"" PY_FORMAT_SIZE_T’ on string literal concatenation

2,209 views
Skip to first unread message

Peinthor Rene

unread,
Apr 4, 2012, 4:30:59 AM4/4/12
to cython-users
Hi!

I just got the new gcc 4.7 on my Archlinux and have a project using c+
+11 and cython.
The subject error occurs because in the new c++11 a space between
string concatenation is mandatory, also according to this gcc bug
report:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51282

I patched my cython to have spaces between " and PY_FORMAT_SIZE_T and
everything compiles again.

If you want the patch I can mail it to someone.

Cheers
Rene

Robert Bradshaw

unread,
Apr 4, 2012, 2:21:44 PM4/4/12
to cython...@googlegroups.com

Yes, please file a pull request against
https://github.com/cython/cython . You can email a patch too, but the
former is preferred.

Thanks,
Robert

Reply all
Reply to author
Forward
0 new messages