Reputation: 487
In the command prompt, neither the g++ or gcc are recognized. I have checked the path variable and it seems fine. Shown below.
C:\WINDOWS\system32; C:\MinGW\bin; C:\Program Files (x86); C:\Program Files
I have checked other topics about this problem and none of them have worked for me. What could be causing this? And more importantly, what information would you guys need to know to help?
Upvotes: 3
Views: 24862
Reputation: 516
I had the same problem. But I realised, I had installed a wrong version. Re-check the version and make sure it is: mingw-w64-x86_64-gcc for windows. The command is : pacman -S mingw-w64-x86_64-gcc
Upvotes: 0
Reputation: 457
For those who have mingw codeblocks installed, they should add this path to PATH variable in environment variables after a semicolon :
C:\Program Files (x86)\CodeBlocks\MinGW\bin
May vary with your install directory of Codeblocks
Also i have observed that if u have two paths for maybe two gcc installations in PATH variable in environment variables; You will still encounter the msg :
gcc is not recognised as an internal or external command
Upvotes: 0
Reputation: 263497
(Copying information from comments.)
The fact that your C:\MinGW\bin
directory is nearly empty (that's where gcc.exe
and g++.exe
should be) indicates that you haven't finished installing MinGW.
See MinGW's Getting Started page for instructions.
Upvotes: 4