News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

the executable file on bin/Debug is not working

Started by Mugiwara303, July 04, 2016, 02:49:53 AM

Previous topic - Next topic

Mugiwara303

hi, i was trying to get the .exe file of a simple "Hello World" projet on bin/Debug but when i double click on it it shows and disappear quickly! why it is not working? thanks in advance

oBFusCATed

Because it is probably a console program and this is how they work. You have to start it inside an open cmd.exe window to see its output.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Mugiwara303

ok thanks i get it now, is there a way to make the .exe file work and prompt the cmd console?

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]


Mugiwara303

i mean to make the console work just by executing the .exe file

stahta01

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]

tedlz123

Add also, you can add a statement system("pause"); before the main function returns.


Sent from my iPhone using Tapatalk