. Advertisement .
..3..
. Advertisement .
..4..
Today, when I am running my program, I encounter the ”nullptr was not declared in this scope c++” error.
I have g++-4.6 installed and I am using Eclipse Helios. I hope to be correct in saying that g++4.6 incorporates C++ 11 features. I’ve developed a C++ project that makes use of the auto and nullptr keywords. The following errors are produced by the build:
../{filename}.cpp:13:13: error: ‘nullptr’ was not declared in this scope
../{filename}.cpp:14:2: warning: ‘auto’ will change meaning in C++0x; please remove it [-Wc++0x-compat]
Please assist me in resolving this issue.
Many thanks!
Solution: You can fix this error by these below steps: