Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Program file does not exist(Can't get Run menu / Run to work)
Program file does not exist [message #1700587] Sat, 04 July 2015 03:33 Go to next message
Eclipse UserFriend
I'm new to this. I have installed Eclipse, I want to do C++ in it. I got the Hello World project to run, but I created a new blank c++ project, pasted in some sample code. I can build the project but when I try to debug or run, I get the error message:

Launching [project name].exe has encountered a problem. Program file does not exist.

Looking at the path, it _doesn't_ exist. I would be grateful if someone could explain how to make it exist, or otherwise get beyond this.

In addition, there is a red symbol with a white X on it overlaid on the project name, but i can't figure out how to find out which error that denotes.
Re: Program file does not exist [message #1700589 is a reply to message #1700587] Sat, 04 July 2015 03:43 Go to previous messageGo to next message
Eclipse UserFriend
Additionally, the following is in the Problems tab:

Description Resource Path Location Type
Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem
Program "gcc" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem
undefined reference to `WinMain' [project name line 0, external location: C:\MinGW\x86_64-w64-mingw32\lib\libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c C/C++ Problem
Re: Program file does not exist [message #1717936 is a reply to message #1700589] Thu, 17 December 2015 16:19 Go to previous messageGo to next message
Eclipse UserFriend
I had the same problem with one of my c++ projects... It appeared to have been caused by the way I added files to my project (via drag & drop). I was able to fix it by right clicking on my project and selecting:

properties -- Run/Debug Settings

This should bring up a form that has an area on the right titled "Launch configurations for 'xxx':", where 'xxx' is the project name. There should be an item in the box under that heading that has a small windows icon with a 'c" in it that says "xxx Debug". Click on that item and the "Edit..." button on the far right should become available... click on the edit button...

This should bring up another window titled "Edit launch configuration properties". For my project, the box under the line "C/C++ Application" was empty. This needs to point to the location of the executable that will be debugged. I was able to click on the "Search Project..." button and find my executable ("Debug/xxx"). I just clicked on that and it filled in the application box. After it's filled in, click on the "Apply" button followed by the "Ok" button. This will bring you back to the Debug settings dialogue window... Click the "Ok" button again, and you should be good to go...


Re: Program file does not exist [message #1872581 is a reply to message #1717936] Sat, 09 November 2024 10:33 Go to previous message
Eclipse UserFriend
OMG I was already giving up but THIS comment right here saved my semester, thank you
Previous Topic:gdb gets incorrect path from Eclipse
Next Topic:How to get a list of all c files to be compiled in current configuration?
Goto Forum:
  


Current Time: Wed May 07 13:13:16 EDT 2025

Powered by FUDForum. Page generated in 0.03428 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top