atom-gpp-compiler icon indicating copy to clipboard operation
atom-gpp-compiler copied to clipboard

cpp files is not recognized as and internal or external command error.

Open avijit1258 opened this issue 8 years ago • 10 comments

'C:\Users\ovi\AppData\Local\Temp\11827-Maximum' is not recognized as an internal or external command, operable program or batch file.

I have added MinGW/bin path to my environment to solve g++ not spawned problem.

avijit1258 avatar Jan 13 '17 11:01 avijit1258

I've had this problem before but I'm not too sure on how I fixed it. The package is probably trying to open 11827-Maximum and NOT 11287-Maximum.exe

If you search in C:\Users\ovi\AppData\Local\Temp\ you should find the .exe file there

liangchunn avatar Jan 13 '17 12:01 liangchunn

yes package is trying to open the exe from your defined location but without .exe . But i need help .

avijit1258 avatar Jan 13 '17 12:01 avijit1258

same here it's not recognizing the full path it stops on a space or on a number and doesn't continue ie: my path would be C:\users\desktop\folder1\folder2\file.exe it would read it C:\users\desktop\folder1\

hsensh avatar Apr 10 '17 20:04 hsensh

I, as well, have the same problem. I have looked at a dozen of different sites and forums but haven't found any solution to this. image Any help would be appreciated. :)

heronova149 avatar Dec 08 '17 22:12 heronova149

Removing the spaces from my location of my project folder helped me fix this problem

mda6 avatar Dec 23 '17 21:12 mda6

Thanks it worked perfectly.

heronova149 avatar Dec 24 '17 01:12 heronova149

Thank you very much .

romanpoudel avatar Feb 03 '20 16:02 romanpoudel

I found a solution for this

  1. open gpp compiler settings in atom.(packages->settings view->manage packages)
  2. you will find gpp compiler settings,open that and make sure that if compile to temporary directory is uncheck.
  3. this will work even if you have spaces in user name.
  4. if this does not work their might be problem in mingw installation and its path.

K-Pranay avatar Aug 06 '20 06:08 K-Pranay

It was super weird for me. My file with name structure "sometext (othertext).cpp" didn't compile. After changing it's name to "a.cpp", compiling and then going back to original name it suddenly started to work

bartex00001 avatar Aug 06 '21 16:08 bartex00001

Please tell me how to fix that Screenshot 2023-08-21 152458

h4jack avatar Aug 21 '23 10:08 h4jack