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

Explicitly set CXXFLAGS for the C++11 standard in CMakeLists.txt #1

Closed
slimhazard opened this issue Sep 27, 2015 · 1 comment
Closed

Comments

@slimhazard
Copy link

My first attempt to build after git clone failed with this message:

[ 10%] Building CXX object src/CMakeFiles/logkafka.dir/logkafka/signal_handler.cc.o
In file included from /usr/include/c++/4.9/thread:35:0,
                 from /home/geoff/Software/logkafka/src/third_party/easylogging/easylogging++.h:280,
                 from /home/geoff/Software/logkafka/src/logkafka/signal_handler.h:33,
                 from /home/geoff/Software/logkafka/src/logkafka/signal_handler.cc:22:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

That step succeeded after adding this line to CMakeLists.txt:

set(CMAKE_CXX_FLAGS "-std=c++11")
@zheolong
Copy link
Collaborator

zheolong commented Oct 2, 2015

Fixed

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

2 participants