C++ Error ‘nullptr was not declared in this scope’ in Eclipse IDE
According to the GCC page for C++11: To enable C++0x support, add the command-line parameter -std=c++0x to your g++ command line. Or, to enable GNU extensions in addition to C++0x extensions, add -std=gnu++0x to your g++ command line. GCC 4.7 and later support -std=c++11 and -std=gnu++11 as well. Did you compile with -std=gnu++0x ?