0

After installing MSYS2 and updating all packages and installing gcc toolchain using pacman -Sy mingw-w64-x86_64-toolchain

enter image description here

I have the 9.2.0 version as shown in the picture above. But when i run gcc.exe --version it says 8.1.0

enter image description here

What is causing this and how can I update to 9.2.0? The reason why I'm doing this is https://sourceforge.net/p/mingw-w64/bugs/737/.

Crabzmatic
  • 115
  • 9
  • 1
    The command is `gcc`, not `gcc.exe`. You might have some other installation of gcc.exe in your path. Typing `which gcc.exe` should show you where that one was found . – M.M Nov 27 '19 at 23:22
  • @M.M Thanks, it turns out it was using MinGW-64 installed separately. Deleting it helped. – Crabzmatic Nov 27 '19 at 23:26
  • OK, glad you have solved it – M.M Nov 27 '19 at 23:29
  • 4
    Based on experience I would recommend not adding any compiler to your permanent path, instead invoke a batch file or shell script when opening a command prompt to add the compiler just for that window . (like MSYS2 does) – M.M Nov 27 '19 at 23:30

0 Answers0