[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

Joshua J Cogliati report at bugs.python.org
Tue Mar 17 20:40:47 CET 2015


Joshua J Cogliati added the comment:

> @Joshua: Can you please try to compile your extension with  Py_LIMITED_API defined? Ex: "#define Py_LIMITED_API 0x03030000" at the top of your C file, or g++ -DPy_LIMITED_API=0x03030000.

It fails in that case, because SWIG is using functions that are not part of the Py_LIMITED_API.  

> And can you also please try to patch Python with pystate_cplusplus.patch?

With the pystate_cplusplus.patch I was able to compile both min_example.tar.gz and my actual extension.  So I with your patch, it does work.  Thank you.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23644>
_______________________________________


More information about the Python-bugs-list mailing list