Skip to content
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

-std=c++11 missing #2925

Closed
oneptr opened this issue Jul 4, 2020 · 2 comments
Closed

-std=c++11 missing #2925

oneptr opened this issue Jul 4, 2020 · 2 comments
Assignees

Comments

@oneptr
Copy link

oneptr commented Jul 4, 2020

I'm using an old compiler (gcc 4.9.2) which has C++11 support, but it needs to be enabled with the compiler flag -std=c++11. The CMakefile.txt does not use this compiler flag; it defaults to c++98, which leads to many compile errors.

  1. Please add -std=c++11 compiler flag
  2. check for compiler supported language level, and if it doesn't meet requirements, issue ONE simple error message, like C++11 or whatever not supported by installed compiler, instead of spitting out 10,000's of non-sense error messages.
@vacing
Copy link

vacing commented Jul 6, 2020

try this

cmake ../ -DCMAKE_CXX_FLAGS="-std=c++11"

@derekmauro derekmauro self-assigned this Jul 7, 2020
@derekmauro
Copy link
Member

I believe this has been fixed at head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants