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

libsigc++>=2.5.1 requires "-std=c++11" compiler flag with cmake #144

Open
PyroDevil opened this issue Dec 29, 2015 · 0 comments
Open

libsigc++>=2.5.1 requires "-std=c++11" compiler flag with cmake #144

PyroDevil opened this issue Dec 29, 2015 · 0 comments
Labels

Comments

@PyroDevil
Copy link

When compiling mkxp on Archlinux with libsigc++=2.6.2 build with cmake fails because the "-std=c++11" flag is missing.

In file included from /usr/include/c++/5.3.0/type_traits:35:0,
                 from /usr/include/sigc++-2.0/sigc++/visit_each.h:22,
                 from /usr/include/sigc++-2.0/sigc++/functors/slot.h:6,
                 from /usr/include/sigc++-2.0/sigc++/signal_base.h:27,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /tmp/mkxp/src/sharedstate.h:25,
                 from /tmp/mkxp/src/main.cpp:34:
/usr/include/c++/5.3.0/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.
 #error This file requires compiler and library support for the \
  ^

Workaround is by adding the flag to the cmake commandline:

$ cmake -DMRIVERSION=2.2 -DCMAKE_CXX_FLAGS=-std=c++11 ..

From the website of libsigc++ it requires c++11 since version >=2.5.1.

@PyroDevil PyroDevil changed the title libsigc++>=2.5.1 requires "-std=c++11" compiler flag libsigc++>=2.5.1 requires "-std=c++11" compiler flag with cmake Dec 29, 2015
@Ancurio Ancurio added the bug label Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants