|
Re: HelloWorld Program not outputting? [message #1015634 is a reply to message #1015516] |
Fri, 01 March 2013 13:30 |
Paul Lawrenson Messages: 7 Registered: March 2013 |
Junior Member |
|
|
Hi Kyle,
I have the same issue. How did you resolve it please? Thanks. Paul.
Post by Andy Gianfagna solved my issue. Something to do with 64bit PCs.
"I was getting the same behavior on Win 7 64 Bit. Adding the -static-libgcc helped get things to show up in the debugger view, but they still didn't show when running in C++ view. However when I added a PATH variable set to C:\MinGW\bin in the Run Configuration, then I saw stdout when running from a normal run configuration in the C+ view. HTH."
[Updated on: Fri, 01 March 2013 15:50] Report message to a moderator
|
|
|
|
|
|
|
Re: HelloWorld Program not outputting? [message #1019434 is a reply to message #1017188] |
Fri, 15 March 2013 17:18 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
On 10-03-13 22:03, sydney faria wrote:
> First add in <cstdlib> , using namespace std, and the system("PAUSE");
> line at the end the code but before the return(). Now the code will put
> the output into a window without exiting until you click any key. This
> idea works fine for the DevC++ compiler for my c code, different
> library, but same function. Although this is the correct code to put
> into the Eclipse CDT compiler, there is a problem: it doesn't work! If
> you run the exe file in a DOS command line window you will get an error
> message saying that libgcc_s_dw2-1.dll cannot be found! If you look on
> the internet you will find that this is a common problem with minGW! The
> dll must is not there! You can download the file and try installing it
> in the miinGW/bin directory as this seems to be the correct location for
> the dll file, but I have not done so yet. And minGW has not yet answered
> my post about fixing this problem with minGW or that the bin directory
> is the correct directory to put the dll in.
In a default installation of MinGW it is installed in \mingw\bin. The
poblem is probably that \mingw\bin is not in your path when trying to
start the executable.
Joost
Cheers,
Joost
|
|
|
Powered by
FUDForum. Page generated in 0.03653 seconds