STINNER Victor added the comment: The problem is more general than Python: #include <stdatomic.h> fails in C++. Try to compiled atomic.cpp with g++, you will get the same error.
The following bug report in the glibc has been closed as WONTFIX: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932 It suggests to use the following code: #ifdef __cplusplus #include <atomic> using namespace std; #else #include <stdatomic.h> #endif I don't know if it works. ---------- Added file: http://bugs.python.org/file38458/atomic.cpp _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23644> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com