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
windows - How to check if gcc is installed on my pc - Stack Overflow
How can I know that which version of gcc compiler I am using? - Stack Overflow
c++ - How to Check the Version of my gcc? - Stack Overflow
How can i see what version of C++ do i have?
Videos
Very simple.
Go to Command Prompt and type
gcc -v
if gcc is installed on your PC, it should display a host of information, starting with the sentence
Using built-in specs
and that will indicate that gcc is installed on your computer.
Windows 8 - right-click on the Start Button and select Command Prompt. For older Windows systems, click the Start Button and in the search box type โcmd""
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.
Run gcc --version, the result will be something like this:
gcc (GCC) 4.4.0
Copyright (C) 2009 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.
If this doesn't work you might not have the compiler setup in your PATH correctly (I believe this is common if using MinGW on Windows), in which case you can first check where the compiler is located by doing the following within Code::Blocks:
- Menubar
Settings->Compiler and Debugger - Select
GNU GCC Compiler - Select the
Toolchain executablestab
Then, using a command line, move to the directory given, then in to the bin subdirectory, then try running gcc --version from there.
Typically execute the command
gcc --version
and it should give you result like this:
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 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.
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.
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$