User Tools

Site Tools


eric:computer:c:c-compiler-version

How to display the version of C you are compiling into.

Copy and past the following into your terminal:

gcc -dM -E - < /dev/null | grep __STDC_VERSION__ | awk '{ print $2 " --> " $3 }'

It should produce output such as:

__STDC_VERSION__ --> 201710L

Code from: https://stackoverflow.com/questions/36662063/how-can-i-know-the-version-of-c

eric/computer/c/c-compiler-version.txt · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki