New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"namespace linux" clashes with GNU C++14 extensions #1946
Comments
So is |
Can't check, but sounds like linux is a macro in that mode. |
It seems that any use of To test, I created a simple main.cpp file: namespace cinder { namespace linux { } }
int main() { return 0; } I tested with gcc 6.3.0 and gcc 7.2.0. Running Running |
I m wondering why the GNU version is pulled in by default since |
It's not necessarily a problem with compiling Cinder itself, but using it in software that has the GNU++14 extensions. If |
@richardeakin , @andrewfb : Is there any consensus to rename that namespace is this a won't fix and people just can't use cinder with -std=gnu++14 / gnu++17? |
Using gcc 6.3.0, compiling with linux fails if "-std=gnu++14" is used. Compiling with "-std=c++14" works fine.
The GCC manual (see 2.2 C++ Language) says:
Specifically, the lines referring to "namespace linux" cause the following error:
To replicate, compile with "-std=gnu++14".
I was able to fix it by either:
linux
withci_linux
The text was updated successfully, but these errors were encountered: