Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22162

VS2017 Cross platform project does not set C++17 as language standard

$
0
0

Am using VS 2017 to develop a cross platform application. Target system has GCC v 8+ installed on it, which, according to documentation, supports C++ 17.

For some reason though, the c++ language standard is resolutely stuck at C++ 14 in my application.

I went to project properties -> C/C++ -> Language and set the C++ language standard explicitly to C++ 17, which was available in the selection list, but that did not change anything.

The macro, __cpluscplus is set at, and expands to 201406L in many of the headers, instead of 201703L which I need to turn on some of the features available with C++ 17.

From what I understand, this macro is reserved, and furthermore, is set by the compiler? In which case, beyond trying to change this in VS Project settings, where this setting was available, what else would need to be done?


Viewing all articles
Browse latest Browse all 22162

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>