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 Overflow
🌐
Learning About Electronics
learningaboutelectronics.com › Articles › How-to-check-the-version-of-GCC-C++-compiler-installed-windows.php
How to Check the Version of the GCC C++ Compiler Installed on a Windows PC
So you can see in this case that ... that you have installed on your PC, you can do it through the command prompt by typing in the single line, g++ --version, and this will return the result....
Discussions

windows - How to check if gcc is installed on my pc - Stack Overflow
In the Command Prompt window type “gcc” and hit enter. • If the output says something like “gcc: fatal error: no input files”, that is good, and you pass the test. ... you can check by running gcc command in the terminal. If you get something like - gcc: fatal error: no input files compilation terminated terminal · it means it is installed you can check the current version with gcc --version or, gcc -v ... Copy this C:\MinGW\bin and go to ... More on stackoverflow.com
🌐 stackoverflow.com
How can I know that which version of gcc compiler I am using? - Stack Overflow
In java, there is command line option javac -version to know the version that is installed on computer. I am curious to know about is there any way exist to know the version of gcc or any command l... More on stackoverflow.com
🌐 stackoverflow.com
c++ - How to Check the Version of my gcc? - Stack Overflow
In file included from /usr/include/c++/4.8.2/locale:41:0, from /usr/include/c++/4.8.2/iomanip:43, from [...omitted by myself as it is irrelevant] /usr/include/c++/... More on stackoverflow.com
🌐 stackoverflow.com
I downloaded and installed MinGW. Typing gcc in the Windows command line prints: gcc is not recognized as an internal or external command
Check to make sure that GCC is in a directory your PATH lists. There's no such thing as "VSCODE STUDIO." VSCode is Visual Studio Code. This is pretty basic. Perhaps you should use Visual Studio instead. More on reddit.com
🌐 r/C_Programming
10
0
September 14, 2024
🌐
Finxter
blog.finxter.com › home › learn python blog › how to check your c version?
How to Check Your C Version? - Be on the Right Side of Change
June 23, 2023 - Pressing the Windows key + R, type appwiz.cpl, and press Enter. Look for Microsoft Visual C++ YYYY Redistributable, where YYYY indicates the version year, in the Programs and Features list.
🌐
Fresh2Refresh
fresh2refresh.com › home › c programming tutorial › c – environment setup using gcc
C Environment Setup using GCC | C Program | Fresh2Refresh
July 17, 2020 - Then, click on “Environment Variables” button and then “New”. You will get a popup window as shown below. Change the System variable as given below. ... 8. Type “gcc –version” in command prompt to check whether C compiler is installed ...
🌐
LinkedIn
linkedin.com › pulse › installing-gcc-compiler-windows-run-c-program-gitbash-david-michael
Installing GCC Compiler in Windows To Run C Program on Gitbash and Setting the PATH Variable
February 5, 2023 - To check if it is installed or not, open Command Prompt and type g++ — version. The MinGW compiler (GCC) is not being detected by the command prompt because the environment path variable has not been set.
🌐
Finxter
blog.finxter.com › home › learn python blog › check c++ version
Check C++ Version - Be on the Right Side of Change
May 13, 2023 - To check the C++ version: Open the terminal. Type g++ -v (if using GCC) or clang++ -v (if using Clang), then press Enter. You will then see the version of the compiler and the supported C++ standard.
Find elsewhere
🌐
Quora
quora.com › How-do-I-know-if-the-GCC-compiler-is-installed
How to know if the GCC compiler is installed - Quora
Answer (1 of 3): Type gcc -v into the command line. If gcc is installed, it will print the version and other information.
Top answer
1 of 3
15

The symlink to the 4.8.2 directory is nothing to worry about, it's normal for the libstdc++ headers on Red Hat Enterprise Linux (and therefore CentOS) to be arranged like that.

gcc --version will tell you the version of the gcc executable in your path.

rpm -q libstdc++-devel will tell you the version of the package that owns the C++ standard library headers.

rpm -ql libstdc++-devel will list the files installed by that package, which will include the files under /usr/include/c++/4.8.2

rpm --verify libstdc++-devel will check that you haven't messed up the C++ headers by replacing them with something else.

The error is more concerning, that implies you have messed something up. My guess would be it's in the from [...omitted by myself as it is irrelevant] part, which may actually be very relevant. std::locale should be declared in <bits/locale_classes.h> which is included before <bits/locale_facets_nonio.h>, so if it wasn't declared my guess is that you have some header that defines _LOCALE_CLASSES_H and prevents the standard library header from being read. Do not define include guards that start with underscores, they are reserved names.

2 of 3
3

I am not quite sure but below is more information

Stackoverflow: version of libc

Copy$ /lib/x86_64-linux-gnu/libc.so.6 
GNU C Library (Ubuntu EGLIBC 2.19-0ubuntu6) stable release version 2.19, by Roland McGrath et al.
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.8.2.
Compiled on a Linux 3.13.9 system on 2014-04-12.
Available extensions:
    crypt add-on version 2.1 by Michael Glad and others
    GNU Libidn by Simon Josefsson
    Native POSIX Threads Library by Ulrich Drepper et al
    BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<https://bugs.launchpad.net/ubuntu/+source/eglibc/+bugs>.
mandar@ubuntu:~/Desktop$ 
🌐
freeCodeCamp
freecodecamp.org › news › how-to-install-c-and-cpp-compiler-on-windows
How to Install C and C++ Compilers on Windows
February 22, 2022 - Now it is time to check whether we have successfully installed all of the above or not. Open the terminal / PowerShell / CMD and apply the commands serially: For checking the GCC version: gcc --version ·
🌐
Visual Studio Code
code.visualstudio.com › docs › cpp › config-mingw
Using GCC with MinGW
November 3, 2021 - To check that your MinGW-w64 tools are correctly installed and available, open a new Command Prompt and type: ... You should see output that states which versions of GCC, g++ and GDB you have installed.
🌐
DEV Community
dev.to › gamegods3 › how-to-install-gcc-in-windows-10-the-easier-way-422j
GCC for Windows: How to install gcc in Windows 10? (the easier way) - DEV Community
December 12, 2021 - ###### (This is assuming you didn't ... 10. Click on OK, and OK and close the other windows. Open a Command Prompt Terminal and try typing `gcc --version` and press Enter....
🌐
Medium
medium.com › @anazilthottunghal › a-guide-to-installing-gcc-on-windows-5cc95c2f38c4
A Guide to Installing GCC on Windows. | by Muhammed Anazil. T. A | Medium
December 5, 2023 - During the installation, you’ll be asked if you want to add Mingw-w64 to the system PATH. Be sure to select this option to enable easy access to GCC commands from any command prompt window. ... This command should display the version of GCC installed on your system, confirming that the installation was successful.
🌐
Quora
quora.com › How-do-I-know-if-GCC-is-installed-What-is-GCC-full-form-What-is-the-GCC-command
How to know if GCC is installed? What is GCC full form? What is the GCC command - Quora
Answer (1 of 3): If you are on a Linux or UNIX™ system, try typing [code ]gcc[/code] at the command prompt. If it's installed with its default name, and in your default [code ]PATH[/code], GCC will complain you haven't given it anything to ...
🌐
Preshing
preshing.com › 20141108 › how-to-install-the-latest-gcc-on-windows
How to Install the Latest GCC on Windows
November 8, 2014 - Just open a Command Prompt (in Windows), navigate to the folder where the Cygwin installer is located, and run the following command: C:\cygwin64>setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel · A window will pop up and download all the required packages along with their dependencies. At this point, you now have a working GCC compiler on your system. It’s not the latest version of GCC; it’s whatever version the Cygwin maintainers chose as their system compiler.
🌐
LinuxVox
linuxvox.com › blog › what-c-norme-i-m-currently-using
How to Check C++ Compiler Version (GCC): CodeBlocks (MinGW) and Linux Commands to Determine Your C++ Standard — linuxvox.com
Version Number: The first line shows 9.4.0, meaning GCC version 9, minor version 4, patch level 0. Distribution Info: (Ubuntu 9.4.0-1ubuntu1~20.04.1) indicates this is the Ubuntu-packaged version for 20.04 LTS. To extract just the version number (e.g., for scripts), use: ... CodeBlocks is a popular cross-platform IDE, often paired with MinGW (Minimalist GNU for Windows) as the compiler toolchain on Windows.
🌐
University of Massachusetts Boston
cs.umb.edu › cs444 › gccWindows.html
Gcc Development on Windows, including for SAPC, Android
Select all packages except ada, fortran and objc. Then use Installation>Apply Changes to get the install to proceed. For simple command line use, install MinGW, and add its bin directory to your Path. Then get a new CMD window to see that gcc is now available at the command line.