Getting: 'g++' is not recognized as an internal or external command, operable program or batch file

On my computer I have Windows 7 x86. I installed MinGW, I wrote the path but when I go in cmd.exe pháo and write g++ -v it says:

"g++" is not recognized as an internal or external commvà.But when I write the make -v comm& it recognizes it. I need this for school, I work in Eclipse, I even installed the lademo java(I saw it must be installed).

Bạn đang xem: Getting: 'g++' is not recognized as an internal or external command, operable program or batch file



Seeing that the make commvà works fine, I think you forgot lớn mark the mingw-gcc-g++ package in the MinGW Installation Manager.

Run the MinGW Installation Manager again & mark mingw-gcc-g++ for installation và press Apply Changes


You have to lớn modify environment variables. Do the following:

From the desktop, right-cliông chồng Computer and cliông chồng Properties.From the Computer Properties window, cliông chồng Change SettingsIn the System Properties window which opens up, cliông chồng on the Advanced tab.In the Advanced section, clichồng the Environment Variables button.

Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and cliông chồng the Edit button. Add or modify the path lines with the paths you wish the computer to lớn access. Each different directory is separated with a semicolon as shown below.

Xem thêm: Download Bluestacks 4 Root Full Crack, Untitled — Visio Full Crack Sinhvienit

C:Program Files;C:Winnt;C:WinntSystem32

Additionally you may refer khổng lồ this link



I had the same problem in Sublime..

Right cliông chồng on my computerAdvanced system settingsEnvironment variablesin system variables, change path to lớn location of "...MinGWin"Example: D:worksublimeMinGWin

Thanks for contributing an answer lớn Stack Overflow!

Please be sure to lớn answer the question. Provide details & share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; bachồng them up with references or personal experience.

To learn more, see our tips on writing great answers.

Post Your Answer Discard

By clicking “Post Your Answer”, you agree khổng lồ our terms of service, privacy policy & cookie policy

Not the answer you're looking for? Browse other questions tagged c++ eclipse g++ mingw or ask your own question.

mingw -- cl is not recognized as an internal or external comm& -- my mingw in new & environment is true
Replacing a 32-bit loop counter with 64-bit introduces crazy performance deviations with _mm_popcnt_u64 on Intel CPUs
site kiến thiết / hình ảnh sản phẩm © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.10.15.40479

Your privacy

By clicking “Accept all cookies”, you agree Stachồng Exchange can store cookies on your device & discthảm bại information in accordance with our Cookie Policy.

Leave a Reply

Your email address will not be published. Required fields are marked *