This is usually caused by having
g++
of an older version than gcc
. What does gcc --version
say?