Hello World debug works, run fails [message #1703652] |
Mon, 03 August 2015 17:08  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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:08Hello - 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25234 seconds