2017-11-22 c++11コンパイル c++11でコンパイル $ cat c11_sample.cpp #include <iostream> int main(){ std::cout << "test" << std::endl; } g++で今まで通りコンパイル $ g++ c11_sample.cpp $ ./a.out test c++11でコンパイル $ g++ -std=c++11 c11_sample.cpp $ ./a.out test 参考:C++11,C++14(C++xx)などの機能を有効にする