Code::Blocks Forums

User forums => Help => Topic started by: Mugiwara303 on July 04, 2016, 02:49:53 am

Title: the executable file on bin/Debug is not working
Post by: Mugiwara303 on July 04, 2016, 02:49:53 am
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
Title: Re: the executable file on bin/Debug is not working
Post by: oBFusCATed on July 04, 2016, 09:01:03 am
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.
Title: Re: the executable file on bin/Debug is not working
Post by: Mugiwara303 on July 04, 2016, 03:25:45 pm
ok thanks i get it now, is there a way to make the .exe file work and prompt the cmd console?
Title: Re: the executable file on bin/Debug is not working
Post by: oBFusCATed on July 04, 2016, 09:14:17 pm
What do you mean by prompt?
Title: Re: the executable file on bin/Debug is not working
Post by: BlueHazzard on July 04, 2016, 10:08:55 pm
http://www.cplusplus.com/forum/beginner/106769/
Title: Re: the executable file on bin/Debug is not working
Post by: Mugiwara303 on July 05, 2016, 02:54:20 am
i mean to make the console work just by executing the .exe file
Title: Re: the executable file on bin/Debug is not working
Post by: stahta01 on July 05, 2016, 03:14:17 am
http://www.cplusplus.com/forum/beginner/106769/

@Mugiwara303:

Read the above link info; then, read this site rules before you post again.
http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)

Tim S.
Title: Re: the executable file on bin/Debug is not working
Post by: tedlz123 on July 27, 2016, 12:44:52 pm
Add also, you can add a statement system("pause"); before the main function returns.


Sent from my iPhone using Tapatalk