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

'g++' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

Open conorlawton opened this issue 8 years ago • 18 comments

Win10 64bit C:\MinGW\bin image I've no idea why this is happening and it seems to be a different problem for everyone, C:>g++ --version 'g++' is not recognized as an internal or external command, operable program or batch file.

conorlawton avatar Dec 19 '16 08:12 conorlawton

cinatom

Getting the same issue on my Win 10 laptop. Turbo C++ is said to be the best IDE for C but it is a pain to use on Win 10, so I wanted to try Atom for C, but getting the error message when I compile and run the program. It compiles and runs on Turbo C++ but not on Atom.

KiranAU avatar Dec 21 '16 06:12 KiranAU

@Krn777 , Turbo C++ is the best IDE...Are you kidding me? Try CodeBlocks . Now,coming to the issue, @1NAX2 Firstly,check if C:\MInGW\bin is in your path environment variable. Secondly,after doing this try to close and reopen the Atom as the user(i ran it as an administrator) which has all (write,read,execute) permissions to the .c file .Your .c file might be read only.Check that first.It worked for me. I might be wrong but what i did was this- i kept the c files in D drive and MinGW in C drive and then Atom compiles & runs it perfectly.Only when I kept the C files in C drive ,I had to run Atom as an administrator to compile and run my C file.

Sayan-Roy avatar Dec 25 '16 03:12 Sayan-Roy

Man. Took me so long and the only thing needed was to restart Atom. I completely forgot that I changed the Path variables after I had open Atom. :/

procmixin avatar Nov 15 '17 03:11 procmixin

Thanks! It started Working.

panjiara avatar Mar 19 '18 03:03 panjiara

thank you bro it started to work

PavanClo avatar Jun 23 '18 16:06 PavanClo

How did you guys get it to start working? I am still having the same problem

meaturner avatar Aug 09 '18 04:08 meaturner

Just restart the atom. This should be the fix.

mdsharifulhaque avatar Aug 09 '18 16:08 mdsharifulhaque

@Sayan-Roy It worked for me. Thank you!

pprathameshmore avatar Aug 20 '18 04:08 pprathameshmore

Its not working ffor me

ujjavalsinha avatar Aug 26 '18 18:08 ujjavalsinha

Not working for me either....still it is not spawning

hyp3r5pace avatar Dec 22 '18 08:12 hyp3r5pace

Same here. How do you restart Atom?

Urban158 avatar Jan 25 '19 23:01 Urban158

New Error Message: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: final link failed: No space left on device collect2.exe: error: ld returned 1 exit status

Urban158 avatar Jan 30 '19 23:01 Urban158

I restarted the Atom but having the same Issue. checked on Command Prompt for "g++ --version" and it says not recognized as an internal or external command.

EDIT: Okay, it was pretty simple. Just restart your pc and the Environment variables will be implemented, Then everything will work fine. JUST RESTART THE PC (worked in my Case).

prasaddkadam avatar Mar 03 '19 15:03 prasaddkadam

@sarvasvX I think the fix is that you should actually set environment variable for MinGW if that is your compiler. I restarted atom and PC but it didn't work for me. So, I tried to change minGW path variable and it works flawlessly now.

Godcreatebugs avatar Feb 10 '20 19:02 Godcreatebugs

Hey I got an issue setting up compilers for Cpp was wondering if I could try and get some help in here, I am also a Windows user:

This might be me though having no experience working on a project in an IDE before:

g++: error: /mnt/d/Coding/Cpp/helloworld.cpp: No such file or directory g++: fatal error: no input files compilation terminated. The IDE says CCLS Language for C/C++ unable to start is this something I would download and install?

I have set up the pathing for g++ already and can verify it is recognized in my CMD prompt.

Mandraulic avatar May 16 '20 19:05 Mandraulic

when i press F5, nothing happens. :-(

utkzas avatar Jun 06 '20 08:06 utkzas

Tks worked man

Viraj-M avatar Mar 05 '21 03:03 Viraj-M

Remember to restart atom after your done with changing the path location. That will fix your problem for sure.

Revanthrockie avatar Nov 25 '22 16:11 Revanthrockie

Issue is stale and appears to largely result from end user misconfiguration.

conorlawton avatar Jul 20 '24 12:07 conorlawton