KOKO KOKO - 6 months ago 37
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download