User forums > Using Code::Blocks
Process Terminated with Status XX
(1/1)
wildfrank:
I've spent about 15 minutes searching for a list of status codes...both on the web and in this forum.
Is there a list somewhere? So far I have seen status 13 and 15 in my silly "hello, world" script.
Thanks!
stahta01:
Add an "return 0;" to the end of the program.
Make sure you declare main correctly http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044841143&id=1043284376
Tim S.
zabzonk:
--- Quote ---I've spent about 15 minutes searching for a list of status codes...both on the web and in this forum.
--- End quote ---
Apart from zero (meaning "it worked") there are really no "official" exit codes for C or C++ programs - it's up to the individual application to decide what to use.
This is nothing specific to Code::Blocks, BTW, and you would be better off asking such language questions on sites like Stack Overflow or http://www.reddit.com/r/learnprogramming.
Navigation
[0] Message Index
Go to full version