Standard Library suggests I use -std=c++17

I have an issue with CMake and g++ in my Travis-Ci Ubuntu environment.

Compilation failed with the following error message:

In file included from /usr/include/c++/10/cinttypes:35,

/usr/include/c++/10/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

   32 | #error This file requires compiler and library support \

      |  ^~~~~

In file included from:

   48 |       uint32_t p_left_color,

Any ideas?

Hi @Mearsheimer,

Looking into the backend and the build specifically, in the full CLI log, (which should be included into the question post) contains -ansi option. This option sets gcc standard to -std=c++98 That’s your problem.

1 Like

This was it @Montana! Thank you.

Hi @Mearsheimer,

Awesome I could help!

1 Like