Cannot compile APMrover2 on Raspberry - unrecognized command line option '-std=gnu++11'

Hello,

I get this error when I follow this tutorial page:

 pi@navio-rpi ~/ardupilot/APMrover2 $ make navio
// BUILDROOT=/tmp/APMrover2.build HAL_BOARD=HAL_BOARD_LINUX HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_LINUX_NAVIO TOOLCHAIN=RPI EXTRAFLAGS=-DGIT_VERSION="0615d7a0"
%% Parameters.o
cc1plus: error: unrecognized command line option '-std=gnu++11'
../mk/build_rules.mk:11: recipe for target '/tmp/APMrover2.build/Parameters.o' failed
make: *** [/tmp/APMrover2.build/Parameters.o] Error 1

I tried to install g+±4.7 and link it to g++ but that does not help,

Thank you!

The last post in this thread should solve your problem: