Altera_Forum
Honored Contributor
11 years agoC++ 11
Hi,
Has anybody used c++ 11 with Nios? By reading the release notes from quartus 13.1, it seems like gcc was upgraded to v4.7.3, which would include support for c++ 11. Now when I try to use some of the c++ 11 features (strongly typed enums, for example), I get this 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. Now if I add -std=c++11 to the build options the error remains. If I open a nios console and do gcc -v I get gcc version 4.5.3 (GCC) So, how do I switch to 4.7.3 or enable c++11 in 4.5.3?