You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Put the following program into a file called main.cc
#include "mpscq.h"
int main(){}
Compile with g++ -c main.cc and get multiple errors that look like this.
usr/lib/gcc/x86_64-linux-gnu/4.9/include/stdatomic.h:68:9: error: ‘_Atomic’ does not name a type
typedef _Atomic __UINT_FAST32_TYPE__ atomic_uint_fast32_t;
^
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/stdatomic.h:69:9: error: ‘_Atomic’ does not name a type
typedef _Atomic __INT_FAST64_TYPE__ atomic_int_fast64_t;
The text was updated successfully, but these errors were encountered:
This is actually something that bothers me in general in C++. Since this is a compiler-provided header, I kinda wished it worked fine on both languages.
I agree that this is a silly compiler issue, but I think as our thread on the #8 shows, there are many solutions to achieving compatibility with C++, and I think it would make this implementation more broadly useable.
The header is not c++ friendly.
Reproducing the problem
Put the following program into a file called
main.cc
Compile with
g++ -c main.cc
and get multiple errors that look like this.The text was updated successfully, but these errors were encountered: