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
Quote from: BlueHazzard on July 04, 2016, 10:08:55 PM
http://www.cplusplus.com/forum/beginner/106769/

@Mugiwara303:

Read the above link info; then, read this site rules before you post again.
http://forums.next.codeblocks.org/index.php/topic,9996.0.html (http://forums.next.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