On my computer I have Windows 7 x86. I installed MinGW, I wrote the path but when I go in cmd.exe and write g++ -v it says:
"g++" is not recognized as an internal or external command.
But when I write the make -v command it recognizes it. I need this for school, I work in Eclipse, I even installed the latest java(I saw it must be installed).
Seeing that the make command works fine, I think you forgot to mark the mingw-gcc-g++
package in the MinGW Installation Manager.
Run the MinGW Installation Manager again and mark mingw-gcc-g++
for installation and press Apply Changes
You have to modify environment variables. Do the following:
- From the desktop, right-click Computer and click Properties.
- From the Computer Properties window, click Change Settings
- In the System Properties window which opens up, click on the Advanced tab.
- In the Advanced section, click the Environment Variables button.
Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
C:\Program Files;C:\Winnt;C:\Winnt\System32
Additionally you may refer to this link
I had the same problem in Sublime..
Right click on my computer
Advanced system settings
Environment variables
in system variables, change path to location of '...\MinGW\bin'
Example: D:\work\sublime\MinGW\bin