Reputation: 864
I am trying to run wiringPi Cpp version with raspberryPi. I downloaded this and tryed to run but I go the error below.
What is the problem here? Did I do something wrong?
Upvotes: 2
Views: 13693
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.
I need to read more goodly. skip getting the version number. Try -std=c++0x
, then upgrade the compiler if it fails.
Upvotes: 3
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