How do I test the current version of GCC?
__GNUC__ = 4 // major __GNUC_MINOR__ = 8 // minor __GNUC_PATCHLEVEL__ // patch
Multiple “could not be resolved” problems using Eclipse with minGW
Go to Project -> Properties -> C/C++ General -> Preprocessor Include Paths, Macros, etc. -> Providers -> CDT GCC built-in compiler settings, deactivate Use global provider shared between projects and add the command line argument -std=c++11.
Eclipse 3.7.0 Indigo with CDT shows many false compilation errors
/usr/include/c++/4.6.1 /usr/include/ /usr/include/c++ /usr/include/c++/4.6 /usr/include/x86_64-linux-gnu /usr/include/asm-generic /usr/include/c++/4.6.1/x86_64-linux-gnu/
File doesn't include these definitions /opt/altera12.1sp1/nios2eds/bin/gnu/H-i686-pc-linux-gnu/nios2-elf/include/sys/config.h __LONG_LONG_MAX__ = 9223372036854775807LL __LONG_MAX__ = 2147483647L __WCHAR_MAX__ = 2147483647L __INT_MAX__ = 2147483647L __SHRT_MAX__ = 32767L __SCHAR_MAX__ = 127L
Eclipse CDT Project Properties (nios2_limits.xml)