News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Program runs in codeblocks but not from the executable.

Started by Midnite, September 16, 2017, 11:39:10 PM

Previous topic - Next topic

Midnite

Hello
So I just started learning c++ and I tried to create a simple hello world program, it builds and runs just fine in code blocks, running it from cmd seems to be working aswell but when I doubleclick the .exe it just quickly flashes an empty window on the screen. I realize this question has been asked before but I wasn't able to find a solution in any of the old threads.


stahta01

Quote from: Midnite on September 16, 2017, 11:39:10 PM
Hello
So I just started learning c++ and I tried to create a simple hello world program, it builds and runs just fine in code blocks, running it from cmd seems to be working aswell but when I doubleclick the .exe it just quickly flashes an empty window on the screen. I realize this question has been asked before but I wasn't able to find a solution in any of the old threads.

This is likely because that is how you wrote your program.
You need to ask on a site that teaches programming.
Link to this site rules: http://forums.next.codeblocks.org/index.php/topic,9996.0.html

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]


Midnite

#3
Right, sorry for asking stupid questions, I didn't want to move forward until I was sure I didn't fuck up some compiler settings or something.
Thank you

Quote from: stahta01 on September 17, 2017, 12:20:40 AM
You need to ask on a site that teaches programming.
Link to this site rules: http://forums.next.codeblocks.org/index.php/topic,9996.0.html

Tim S.
Gotcha, wrong place.