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 ... 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
How can i see what version of C++ do i have?
C++ does have different standards but since it is a compiled language, you do not install a version of it, unlike in interpreted languages such as Python. The compiler you use though, in most cases gcc or clang, does have a version. You can find out about this in the shell with: gcc -v or clang -v each version of a compiler has a default standard of C++ it compiles. This default you will find out with a quick google search involving your compiler's name and its version. Also, you can change the C++ standard using a flag. For gcc this would be: g++ -std= make sure to consult the corresponding man pages as well. More on reddit.com
๐ŸŒ r/cpp_questions
14
11
November 6, 2019
๐ŸŒ
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 ...
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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....
๐ŸŒ
Host IT Smart
hostitsmart.com โ€บ manage โ€บ knowledgebase โ€บ 435 โ€บ install-gcc-compiler-on-windows.html
How to Install GCC Compiler on Windows?
May 21, 2025 - You should see the installed GCC version displayed. To check if GCC is working, create a simple C program: ... You have successfully installed GCC on Windows using WSL.
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$ 
๐ŸŒ
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 ...
๐ŸŒ
Reddit
reddit.com โ€บ r/cpp_questions โ€บ how can i see what version of c++ do i have?
r/cpp_questions on Reddit: How can i see what version of C++ do i have?
November 6, 2019 - For gcc this would be: g++ -std=<standard> make sure to consult the corresponding man pages as well. ... What operating system are you on? That's the most important. ... Don't know why I got downvoted for asking what OS you had since it is important.
๐ŸŒ
mingw-w64
mingw-w64.org โ€บ getting-started โ€บ msys2
Windows / MSYS2 (GCC) - mingw-w64
To check the version of the provided GCC and mingw-w64: $ pacman -Qi mingw-w64-ucrt-x86_64-gcc | grep Version Version : 14.2.0-2 # GCC Version $ pacman -Qi mingw-w64-ucrt-x86_64-headers | grep Version Version : 12.0.0.r473.gce0d0bfb7-1 # mingw-w64 Version ยท Creating and compiling a Windows executable: // hello.c #include <stdio.h> int main(void) { printf("Hello, Windows!\n"); return 0; } $ gcc hello.c -o hello.exe ยท
๐ŸŒ
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.
๐ŸŒ
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
This blog will guide you through **step-by-step methods to check your GCC version** in two common environments: Linux (via terminal commands) and CodeBlocks (a popular IDE using MinGW on Windows). Additionally, weโ€™ll explore how to determine the C++ standard (e.g., C++11, C++17, C++20) supported ...
๐ŸŒ
Linux Hint
linuxhint.com โ€บ check-the-version-my-gcc-compiler
How to Check the Version of Your GCC Compiler โ€“ Linux Hint
Comprehensive tutorial on understanding the GCC compiler and on how to check your GCC compiler version and locate where it is installed on your computer.