Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Exexeutable file issues(Re: Problems executable file)
Exexeutable file issues [message #1777528] Wed, 29 November 2017 19:09 Go to next message
Eclipse UserFriend
First, I am very new to Elipse. I am using Elipse Oxygen for C++

I (think) I have correctly installed and have Elipse running.

I have generated a very simple C++ program and it compiles without any problems and appears to run in the debugger mode as expected. The code generated is as follows:

[code]
#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
int i = 0;
cout << "!!!Hello World!!!" ;
cout << "!!!Hello World!!!" ;
cout << "!!!Hello World!!!" ;
cout << "!!!Hello World!!!" << endl;
cout << "i = "; cout << i << endl;
i = 2;
cout << "i = ";cout << i << endl;
return (0);
}
[code]

I found the executable file "Hello.exe" in the Hello\Debug" directory.

When I try to run the file in Windows command window, I get a failure stating that:
The application fails to start because "libgcc_s_dw2_1.dll" was not found.

I did a search of my computer looking for the "DLL" file and I could not find it. Why is the executable file looking for it??

Something I noticed somewhere was a reference to a "RELEASE" directory in the project directory. I forgot where I saw it but it is not on any of my projects. How do you get the program to generate one of those??

What am I missing??

Shouldn't the "Hello.exe" file program run??

Is there a step I am missing in generating an executable file??

Ken

Re: Exexeutable file issues [message #1777591 is a reply to message #1777528] Thu, 30 November 2017 10:14 Go to previous messageGo to next message
Eclipse UserFriend
That looks like mingw. When you run it you need the mingw bin directory (where that file resides) in you PATH.
Re: Exexeutable file issues [message #1777612 is a reply to message #1777591] Thu, 30 November 2017 13:19 Go to previous message
Eclipse UserFriend
Found it.


I searched both of my hard drives again and found the file "libgcc_s_dw2-1.dll" in a Gimp directory. Gimp is a graphical software used to generate XMP files.

I copied it to the executable director and reran Hello.exe from the command line again. The program back and complained about another missing .dll file. I went and found the missing .dll file and copied to the Hello directory and ran Hello again. After three attempts, the Hello.exe program ran.


As for the problem of getting the Elipse program to generate a Release program file, I found that if I right clicked on Program I found thatr in the C/C++Build section under configuration, I could set it up to generate a RELEASE version of the program.

Thanks for your help.

Ken
Previous Topic:When .project is changed, how do I update the makefile on CLI ?
Next Topic:debug with Cygwin fails
Goto Forum:
  


Current Time: Sat Jul 12 15:18:37 EDT 2025

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

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

Back to the top