I am trying to get some c++ code (with c++11) to compile in the mac terminal. I tried
clang++ -std=c++11 main.cpp
but i get the error
error: invalid value 'c++11' in '-std=c++11'
My xcode is completely up to date, I am assuming I am doing something wrong in the terminal? The code runs fine in xcode itself, I just cannot get it to run in the terminal. Any tips would be great!