Try using g++ --version command at cmd Because for me also g++ -version or g++ -v command hasn't worked.
Answer from Jupiter Debbarma on Stack OverflowTry using g++ --version command at cmd Because for me also g++ -version or g++ -v command hasn't worked.
Just use g++ -v or gcc -v which will give you your compiler version.
You can also go to your windows settings, click on "Apps" go to the search bar and search up c++ scroll down to the last item, and click on it. The version should be displayed fairly obviously for you.
Microsoft Visual C++ version displayed from Microsoft Window's Settings
How can i see what version of C++ do i have?
Need a function to extract Windows Name & Version in C/C++
standards - How can I know the version of c? - Stack Overflow
gcc - How can I tell what standard my C is in? - Software Engineering Stack Exchange
Videos
There are three ISO standard versions of C: C90, C99 and C11. To know which C version your program is running check the:
Copy __STDC_VERSION__
macro.
- For C90: the macro is undefined.
- For C99: the macro is defined with value 199901L.
- For C11: the macro is defined with value 201112L.
On the other hand if what you want to know is the version not of C but the version of your C compiler, as the other answers suggests, run the compiler with the appropriate option (--version for both gcc and clang for example).
Depending on your compiler it can support different C versions. You can ask to change the compiler default C version used for compiling using the -std= option with gcc and clang, for example: -std=c90, -std=c99 or -std=c11.
Copy#include <stdio.h>
int main()
{
#if defined __STDC_VERSION__
if(__STDC_VERSION__ == 202000)
printf("We are using C23!\n");
else if (__STDC_VERSION__ == 201710L)
printf("We are using C17!\n");
else if (__STDC_VERSION__ == 201112L)
printf("We are using C11!\n");
else if (__STDC_VERSION__ == 199901L)
printf("We are using C99!\n");
#else
printf("We are using C90!\n");
#endif
return 0;
}
In the case of gcc, you can tell the compiler what C standard to use via the --std option. Running man gcc will explain this, and will list all of the standards that are supported. Note that there are lots of variations including some "standards" that are GCC specific extensions / variations to the official standards.
If you want to understand why certain things in your code are giving you warnings, you would need to trace back to the particular standard that the warning message is referring to, and READ the relevant part of the standard.
But, I never really took the time to understand what ANSI C really meant.
You need to remedy that. Your poor understanding is most likely the root of a lots of mysterious bugs that arise when you change compilers, port code from one platform to another, etcetera. (The kind of thing that lots of people incorrectly blame on "compiler bugs".)
If you were not consciously trying to follow the ANSI standard when writing the code, then most likely your code will not conform to any of the ANSI C standards.
The reason for this is because there are no C compilers that by default enforce an ANSI C standard, but they all accept their own dialect of C.
To add to that, if your program tries to do user-interaction in a more fanciful manner than "print a prompt and read a line of text", then you must already step beyond the facilities provided by ANSI C. If you are unaware of that, then it is easy to pick a solution that is specific for the compiler you are using at that time.
If you want to start following ANSI C strictly, then you must accept that your programs can't do fancy user interaction and can't support most other kinds of connections to the outside world.
If you don't actually care that much about standard conformance, but you want your program to be portable between different platforms and compilers, then you should learn about ANSI C to know what it provides and then deliberately choose portable (3rd-party) libraries for the features that you need beyond what the satndard offers you.
I'm not sure, but try to uninstall the programs using standard Windows tools. After that, manually delete the remaining files and hidden files (as well as protected files) using safe mode. Keep in mind that some files can be hidden and protected by the system, so you need to configure the display of hidden protected folders in Explorer through the "View" tab. To enter safe mode, enable it in the system configuration under "boot"... I'm not an expert.
Thank you friend!))
I found a lot of files on the C drive through the search query "Microsoft Windows Desktop Runtime" Many files are displayed. I did not understand what to do with them to make sure they are complete. However, the games work fine. You helped me and didn't leave me. God bless you!
Спасибо! :-)