When I compile I get the 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.
So I realize I need to use -std=c++11 with my cmake by using the prefix -DCMAKE_CXX_FLAGS="-std=c++11" however it gives me a bunch of errors. I only need the flags for 1 file not my entire core, which as a result gives me errors with std::strings and such.
I know there's a way to use the c++11 flag only on 1 file, but how do I do it? I'm running on Linux.
Thanks. : )
#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.
So I realize I need to use -std=c++11 with my cmake by using the prefix -DCMAKE_CXX_FLAGS="-std=c++11" however it gives me a bunch of errors. I only need the flags for 1 file not my entire core, which as a result gives me errors with std::strings and such.
I know there's a way to use the c++11 flag only on 1 file, but how do I do it? I'm running on Linux.
Thanks. : )