Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Hello World debug works, run fails(Different behavior with debug vs. run)
Hello World debug works, run fails [message #1703652] Mon, 03 August 2015 17:08 Go to next message
Eclipse UserFriend
Hello - I've installed Eclipse and MinGW per instructions, created a project from the "Hello World C++ Project" executable, and successfully built the project. If I try to RUN the project, it fails with this error and no "Hello World" output:
<terminated> (exit value -1,073,741,515) HelloWorld.exe [C/C++ Application]

but if I DEBUG the project, I can step over the cout line then click Resume, and it executes correctly with the expected output and an exit value of 0.

What is happening?? Am I doing something wrong?
Thanks!
~Dan
Re: Hello World debug works, run fails [message #1703781 is a reply to message #1703652] Tue, 04 August 2015 20:23 Go to previous messageGo to next message
Eclipse UserFriend
Compare these two configurations (Run and Debug):

(Right click on the project) -> Properties -> C/C++ Build -> Settings -> Libraries

Make sure you have the Libraries and Library search path the same.

While in the Release mode, clean and build the project.

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames

Daniel Fretz wrote on Mon, 03 August 2015 21:08
Hello - I've installed Eclipse and MinGW per instructions, created a project from the "Hello World C++ Project" executable, and successfully built the project. If I try to RUN the project, it fails with this error and no "Hello World" output:
<terminated> (exit value -1,073,741,515) HelloWorld.exe [C/C++ Application]

but if I DEBUG the project, I can step over the cout line then click Resume, and it executes correctly with the expected output and an exit value of 0.

What is happening?? Am I doing something wrong?
Thanks!
~Dan

Re: Hello World debug works, run fails [message #1703875 is a reply to message #1703781] Wed, 05 August 2015 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Had the same problem several days ago.
Please verify the Windows PATH variable is set correctly to refer to MinGW directories and restart Windows.
The above steps solved the problem.
Re: Hello World debug works, run fails [message #1703945 is a reply to message #1703875] Wed, 05 August 2015 22:57 Go to previous message
Eclipse UserFriend
Thanks, it is fixed! The problem was like you said ... my Windows PATH variable didn't refer to the MinGW bin directories. Don't know why it worked in debug though. But I'm all set -- thanks!
Dan
Previous Topic:Inherit from another projects class
Next Topic:Weird errors from makefile
Goto Forum:
  


Current Time: Wed May 07 16:54:15 EDT 2025

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

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

Back to the top