Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: spectrum2me on June 02, 2016, 09:57:03 pm
-
Okay so the first "hello world" runs in the ide fine. But does not run as a stand alone .exe why?
Windoze 8
-
Probably some dll is missing use dependency walker to find out which one.
-
where is that?
-
http://lmgtfy.com/?q=dependency+walker
-
Okay so the first "hello world" runs in the ide fine. But does not run as a stand alone .exe why?
Windoze 8
What does "not run" mean? Does it pop up and closes immediately? or does it crash? or does happen nothing? Is there some error message? some more info would be nice, so we can help you...
-
It does pop up and disappears quickly so yeah technically I guess it runs.
-
It does pop up and disappears quickly so yeah technically I guess it runs.
exactly, this is no crash, your program works as expected.....
Look at the code... after the return statement your main loop exits, and the console window closes. Codeblocks adds some convenients to the execution and keeps the console window open, but this has nothing to do with your program. If you run your program outside c::b you don't have this feature and have to add it by yourself...
https://www.google.de/?gws_rd=ssl#q=c+program+closes+immediately