Try -std=c++0x flag if -std=c++11 is not accepted.