ffttyy
ffttyy

Reputation: 864

unrecognized command line option “-std=c++11”

I am trying to run wiringPi Cpp version with raspberryPi. I downloaded this and tryed to run but I go the error below.

enter image description here

What is the problem here? Did I do something wrong?

Upvotes: 2

Views: 13693

Answers (2)

user4581301
user4581301

Reputation: 33931

Run g++ -v on the command line. If the version number is 4.3 through 4.6 replace -std=c++11 with -std=c++0x and see if you get any love. If that still doesn't work, you'll have upgrade the compiler or remove the c++11 features from the library. Seriously recommend the former over the latter.

If the compiler is before version 4.3 definitely upgrade.

edit

I need to read more goodly. skip getting the version number. Try -std=c++0x, then upgrade the compiler if it fails.

Upvotes: 3

Adam
Adam

Reputation: 17329

Upgrade your GCC. You appear to have GCC 4.6, and the flag you mention was introduced with GCC 4.7.

Upvotes: 5

Related Questions