New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g++:error:CreateProcess:No such file or directory #26

Closed
Dimri opened this Issue Jul 28, 2016 · 13 comments

Comments

Projects
None yet
5 participants
@Dimri
Copy link

Dimri commented Jul 28, 2016

Whenever i try to compile my C++ program. It give error:

g++:error:CreateProcess:No such file or directory.

Please help. Thank you

@kriscross07

This comment has been minimized.

Copy link
Owner

kriscross07 commented Jul 30, 2016

  • open Atom
  • press Ctrl + ,
  • click on the settings for gpp-compiler
  • enable the Debug Mode option.
  • reload Atom with Ctrl + Alt + r
  • press Ctrl + Shift + I (Linux) or Ctrl + Alt + i (Windows)
  • click the Console tab
  • try to compile your C++ program
  • right click the console, and click Save as...
  • reply with the contents of the file
@Dimri

This comment has been minimized.

Copy link

Dimri commented Jul 31, 2016

Window load time: 791ms
activate()
platform win32

/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
::shadow pseudo-element is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
POST https://www.google-analytics.com/collect?t=event&ec=window&ea=ended&ev=2468…75718-5fad-4c93-a253-5f863225675c&an=atom&av=1.8.0&sr=1360x768&aiid=stable net::ERR_CONNECTION_REFUSED
POST https://www.google-analytics.com/collect?t=event&ec=window&ea=started&v=1&t…75718-5fad-4c93-a253-5f863225675c&an=atom&av=1.8.0&sr=1360x768&aiid=stable net::ERR_CONNECTION_REFUSED
POST https://www.google-analytics.com/collect?t=timing&utc=shell&utv=load&utt=93…75718-5fad-4c93-a253-5f863225675c&an=atom&av=1.8.0&sr=1360x768&aiid=stable net::ERR_CONNECTION_REFUSED
POST https://www.google-analytics.com/collect?t=timing&utc=core&utv=load&utt=791…75718-5fad-4c93-a253-5f863225675c&an=atom&av=1.8.0&sr=1360x768&aiid=stable net::ERR_CONNECTION_REFUSED
POST https://www.google-analytics.com/collect?t=event&ec=deprecation-v3&ea=jshin…75718-5fad-4c93-a253-5f863225675c&an=atom&av=1.8.0&sr=1360x768&aiid=stable net::ERR_CONNECTION_REFUSED
gpp-compiler:compile
getFileType() undefined
compileFile() C++ undefined
getFilePath()
getCommand() C++
getTmp() intro1
getArgs() ["A:\Programs\intro1.cpp"] C:\Users\HH\AppData\Local\Temp\intro1 C++ null
compiler args ["A:\Programs\intro1.cpp", "-o", "C:\Users\HH\AppData\Local\Temp\intro1"]
compile() g++ Object {root: "A:", dir: "A:\Programs", base: "intro1.cpp", ext: ".cpp", name: "intro1"} ["A:\Programs\intro1.cpp", "-o", "C:\Users\HH\AppData\Local\Temp\intro1"] undefined
config Object {addCompilingErr: false, debug: true, gccOptions: "", gppOptions: "", runAfterCompile: true}
saving...
stderr g++: error: CreateProcess: No such file or directory

exit code 1

@Dimri

This comment has been minimized.

Copy link

Dimri commented Jul 31, 2016

console

@kriscross07

This comment has been minimized.

Copy link
Owner

kriscross07 commented Jul 31, 2016

What happens if you enter

gcc A:\Programs\intro1.cpp -o C:\Users\HH\AppData\Local\Temp\intro1
gcc A:\Programs\intro1.cpp -o A:\Programs\intro1.exe
cd A:\Programs
gcc intro1.cpp -o intro1.exe

in the command prompt?

@Dimri

This comment has been minimized.

Copy link

Dimri commented Aug 3, 2016

cmd

@Dimri

This comment has been minimized.

Copy link

Dimri commented Aug 3, 2016

sorry for late reply

@kriscross07

This comment has been minimized.

Copy link
Owner

kriscross07 commented Aug 6, 2016

What happens when you enter

A:
cd Programs
g++ intro1.cpp -o intro1.exe

in the command prompt?

@Dimri

This comment has been minimized.

Copy link

Dimri commented Aug 6, 2016

same error
g++: error: CreateProcess : No such file or directory

@kriscross07

This comment has been minimized.

Copy link
Owner

kriscross07 commented Sep 4, 2016

Sorry for the month long reply, but I am unable to reproduce this issue so I cannot help.

@kriscross07 kriscross07 closed this Sep 4, 2016

@anirudha-ani

This comment has been minimized.

Copy link

anirudha-ani commented Jan 14, 2017

I have also faced the same problem while setting up Atom for C++ on Window 10. But later I found out that my MinGW was copied from Codeblocks folder. Reinstalling the packages through official MinGW installer and adding the directory path (for my case C:\MinGW\bin) in

Advance System Settings>Environment Variables > Path

solved the problem for me.

@Ayemidotman

This comment has been minimized.

Copy link

Ayemidotman commented Feb 5, 2018

please can you help me out, mine is gcc: error: create process: No such file directory

@Ayemidotman

This comment has been minimized.

Copy link

Ayemidotman commented Feb 5, 2018

yes,,, i got the answer... change the gcc to g++

@Gowq

This comment has been minimized.

Copy link

Gowq commented Mar 28, 2018

Eu nao sei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment