Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't run .exe files from eclipse!
Can't run .exe files from eclipse! [message #140686] Mon, 14 March 2005 22:03 Go to next message
Eclipse UserFriend
Originally posted by: eeerr.dfdf.com

I have made the following code:

#include <stdio.h>

int main(void)
{
int minTemp = 0;
int maxTemp = 300;
int tempInterval = 20;
int fahr = maxTemp;
int celsius;

printf("Fahrenheit Celsius\n");

while(fahr >= minTemp) {
celsius = 5 * (fahr-32) / 9;
printf("%d\t\t%d\n", fahr, celsius);
fahr = fahr - tempInterval;
}
getchar();
return 0;
}


It compiles ok and I also get a .exe file where I specified the output. But
I cannot run that .exe file from eclipse when I chose run. The only way I
can run the file is by finding it in Windows Explorer and then double click
it.

How do I run the .exe I generate in Eclipse??

JS
Re: Can't run .exe files from eclipse! [message #140745 is a reply to message #140686] Tue, 15 March 2005 07:57 Go to previous messageGo to next message
Gael Martin is currently offline Gael MartinFriend
Messages: 46
Registered: July 2009
Member
JS wrote:
> It compiles ok and I also get a .exe file where I specified the output. But
> I cannot run that .exe file from eclipse when I chose run. The only way I
> can run the file is by finding it in Windows Explorer and then double click
> it.
>
> How do I run the .exe I generate in Eclipse??

From a previous post:

Tore Sagen, Norway wrote:
> I'm making a HelloWorld application using WinXP and MinGW. After
compilation and linking, I select Run and Run..., then I create a new
C/C++ application. When I search my project for an executable it finds
nothing. If I try to browse for my helloworld.exe, it tells me that the
file is not executable. Neither manually selecting the file, applying
the changes and click "Run" works.
> However, if I click the helloworld.exe in Navigator or Project View,
it works as expected. Could anyone please tell me how to correct this?

Gael Martin wrote:
Your .exe are runnable dont worry :-) You just need to get the right
parser settings:

Go in your project properties dialog, click on the section "C/C++ Make
Projects", you shoud then see a tab called "Binary Parser", make sure
there's a check box next to "PE Window parser".

Gael
Re: Can't run .exe files from eclipse! [message #140765 is a reply to message #140745] Tue, 15 March 2005 10:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eeerr.dfdf.com

> Go in your project properties dialog, click on the section "C/C++ Make
> Projects", you shoud then see a tab called "Binary Parser", make sure
> there's a check box next to "PE Window parser".


I don't have anything called "C/C++ Make Projects" under my project
properties. I have something called "C/C++ Build" where there is a pane
called "Binary Parser" and there "PE Windows Parser" is already checked!

JS
Re: Can't run .exe files from eclipse! [message #1860511 is a reply to message #140765] Thu, 10 August 2023 23:53 Go to previous messageGo to next message
Clifton Liles is currently offline Clifton LilesFriend
Messages: 18
Registered: October 2011
Location: Texas
Junior Member
Still cant run .exe files'.

properties >Settings>BinaryParser> : Cygwin PE64 parser (checked) & PE64 windows (checked)
There are options (2nd line, filt, cygpath,& command) but what to change?
Other options for parser: mach-o 64, mach o, PE win (dep),AIX,ELF, GNU ELF ,HP-UX SOM,

Eclipse Version: 2021-06 (4.20.0)
Cliff




Failure is not an option. It comes bundled with your Microsoft products.

[Updated on: Thu, 10 August 2023 23:54]

Report message to a moderator

Re: Can't run .exe files from eclipse! [message #1860521 is a reply to message #1860511] Fri, 11 August 2023 22:45 Go to previous message
Clifton Liles is currently offline Clifton LilesFriend
Messages: 18
Registered: October 2011
Location: Texas
Junior Member
OK I did run-> run configurations.
and
changed The C/C++ Application
form fimename to filename.exe.
It works.


Failure is not an option. It comes bundled with your Microsoft products.
Previous Topic:Debugging with GDB - incorrect path to executable
Next Topic:Eclipse SDK
Goto Forum:
  


Current Time: Thu May 02 01:54:44 GMT 2024

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

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

Back to the top