Author Topic: Process Terminated with Status XX  (Read 21068 times)

wildfrank

  • Guest
Process Terminated with Status XX
« on: January 14, 2013, 03:27:41 am »
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!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Process Terminated with Status XX
« Reply #1 on: January 14, 2013, 05:09:21 am »
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.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

zabzonk

  • Guest
Re: Process Terminated with Status XX
« Reply #2 on: January 14, 2013, 09:46:49 am »
Quote
I've spent about 15 minutes searching for a list of status codes...both on the web and in this forum.

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.