Author Topic: Process terminated with status 12 (0 minutes, 7 seconds)  (Read 9240 times)

Offline srikanth

  • Single posting newcomer
  • *
  • Posts: 2
Process terminated with status 12 (0 minutes, 7 seconds)
« on: April 13, 2013, 09:55:14 am »
I got this message when I built and ran Hello World program in C. What does it mean?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Process terminated with status 12 (0 minutes, 7 seconds)
« Reply #1 on: April 13, 2013, 10:46:35 am »
That your Hello world program has 12 as return-value !

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Process terminated with status 12 (0 minutes, 7 seconds)
« Reply #2 on: April 13, 2013, 07:10:11 pm »
(:D)

Look at that man page srikanth, you should understand : http://man7.org/linux/man-pages/man3/sprintf.3.html
Kernel Extremist - PedroM power ©

Offline srikanth

  • Single posting newcomer
  • *
  • Posts: 2
Re: Process terminated with status 12 (0 minutes, 7 seconds)
« Reply #3 on: April 14, 2013, 05:24:37 pm »
Ok had it sorted out. Forgot to type int main(void) and include return 0; in the body of the main function.