Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » "Program file does not exist"
"Program file does not exist" [message #165736] Sat, 11 March 2006 09:03 Go to next message
Eclipse UserFriend
Originally posted by: huubvanniekerk.gmail.com

Hi,

Using Fedora Core 4, Eclipse 3.1.1 with the latest CDT (according to
update manager), I'm trying to compile a simple "Hello World" as a
managed C++ project. However, though the code compiles ok after "Run",
it says "Program file does not exist". Any idea?

Thanks,

Huub
Re: "Program file does not exist" [message #166341 is a reply to message #165736] Tue, 21 March 2006 11:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

well, _does_ it exist? if yes, does it exist at the location the launcher
looks for it and with the name the launcher uses?

On Sat, 11 Mar 2006 15:03:20 +0100, Huub <huubvanniekerk@gmail.com> wrote:

> Hi,
>
> Using Fedora Core 4, Eclipse 3.1.1 with the latest CDT (according to
> update manager), I'm trying to compile a simple "Hello World" as a
> managed C++ project. However, though the code compiles ok after "Run",
> it says "Program file does not exist". Any idea?
>
> Thanks,
>
> Huub
Re: "Program file does not exist" [message #166580 is a reply to message #166341] Sun, 26 March 2006 04:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: huubvanniekerk.gmail.com

arne anka wrote:
> well, _does_ it exist? if yes, does it exist at the location the
> launcher looks for it and with the name the launcher uses?
>

Well, no, it doesn't. But my point is: if I create a project, and within
the project I create a sourcefile, and compile it, why doesn't it create
an executable just like on Windows?
When I create a standardfile within a standard project, and give it a .c
extension, it works ok. It doesn't when I give it .cpp as extension.
Any explanation to this? Am I doing things wrong? I find the docs and
guides on using CDT very limited: the guide on creating a project being
focused on Windows only.

Huub
Re: "Program file does not exist" [message #166818 is a reply to message #166580] Thu, 30 March 2006 05:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

> why doesn't it create an executable just like on Windows?

it usually does. at least i never stumbeld over this problem.
if the executable was/is not created there was/is always a cause.
have a look at yor configuration:
- does the launcher search for the executable at a location where the
executable exist?
- did you ever build _before_ running (i e independently)?
- do you have in the "c/c++-projects"-view in your project a pseudo-folder
called "Binaries"?
- does a manual build work (i e outside eclipse)?

i think it's rather a misunderstanding of the functionality of eclipse
than a bug that causes your troubles.

hth
Re: "Program file does not exist" [message #167043 is a reply to message #166818] Fri, 31 March 2006 02:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: huubvanniekerk.gmail.com

> - does the launcher search for the executable at a location where the
> executable exist?

Yes.

> - did you ever build _before_ running (i e independently)?

Actually, no.

> - do you have in the "c/c++-projects"-view in your project a
> pseudo-folder called "Binaries"?

Yes.

> - does a manual build work (i e outside eclipse)?

Yes.

>
> i think it's rather a misunderstanding of the functionality of eclipse
> than a bug that causes your troubles.

That's what I was thinking as well. Now that I have a very simple code
running, there's some odd behaviour I experienced before.

#include <iostream>

using namespace std;

int main()
{
int x;
cout << "Robot1" << endl;
cin >> x;
cout << x << endl;
return 0;
}

When run from commandline in a terminal it runs ok. When run inside
Eclipse, the following happens: without "cin >> x" and the next
"cout.." it immediately prints Robot1 in the console. With it, however,
it first asks for input, and then prints the cout lines in correct
order. Why would that be?
Re: "Program file does not exist" [message #167114 is a reply to message #167043] Fri, 31 March 2006 09:14 Go to previous message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

> order. Why would that be?

dunno. works ok here.
Previous Topic:Macros contain a path to Cygwin Bin folder
Next Topic:qt + CDT + minGW + gdb; does not work
Goto Forum:
  


Current Time: Thu Jul 17 02:48:59 EDT 2025

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

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

Back to the top