KOKO KOKO - 1 month ago 8
C++ Question

A g++/c++ inconvenience

I am learning c++ and I am compiling lots of small programs without makefiles (using m-x compile) via g++.

When I want to compile according to c++14 I have to constantly add -std=c++14.

Is there a way to make g++ compile c++14 by default and avoid the extra typing?

Here is my current version:
g++ (Ubuntu 5.4.1-2ubuntu1~16.04) 5.4.1 20160904.

Thank you.

Answer Source

I guess it is what it is. Sometimes things don't work the way we imagine.