Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22040

Typing g++ --version is showing the wrong version in windows

$
0
0

I am on Windows 7, installed MinGW a while ago, now I need to use it but I need g++ version 5.4.0 and above. So I went into MinGW Installation Manager and updated mingw32-gcc-g++ to the latest (repository) version 9.2.1 as is shown in the picture here: enter image description here

But then when I go to check on the command prompt it shows that it hasn't updated at all:

    C:\>g++ --version
    g++ (GCC) 5.2.0
    Copyright (C) 2015 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.

It still shows me that I am on version 5.2.0. I tried restarting the PC which didn't work. I decided to uninstall everything and reinstall, so I checked in "Control Panel>Programs And Features" but I didn't find anything with g++, gcc or TMD-GCC as some people online were saying.

So my question is how do I update gcc and make it show up on the command prompt as the correct version?


Viewing all articles
Browse latest Browse all 22040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>