User forums > Help
process terminated with status 12
unasimulated:
hi, very new to C and I tried this program and got a process terminated with status 12 error, what am I missing?
/*print a message on the screen*/
#include <stdio.h>
main ()
{
printf("work");
printf("just once!\n");
return 0;
}
raynebc:
http://forums.codeblocks.org/index.php?topic=17793.0
You didn't define main as having a return value so the compiler may have optimized away that return 0 statement and I'm guessing 12 is the return value of your last printf() call and that gets returned implicitly.
unasimulated:
OK, so I tried this and still no luck, can see anything wrong but still get the same result, sorry for being a pain but I can't see anything missing
/*print a message on the screen*/
#include <stdio.h>
int main(void)
{
printf ("work");
printf ("just once!");
return 0;
}
raynebc:
Could be something like your antivirus software interfering.
oBFusCATed:
Have you tried to use the debugger?
Navigation
[0] Message Index
[#] Next page
Go to full version