问题
After downloading and installing Code::Blocks
with MinGW
, I just started a new console project on it and it created a main.c
file with this content:
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
And it does compile. However, when I run it, no "Hello world!" is shown in the console and there is a message like
Process terminated with status 1993077897 (0 minutes, 3 seconds)
or
Process terminated with status -1073741510 (0 minutes, 7 seconds)
in the build log.
I can truly say that I just don't know what went wrong.
回答1:
Problem solved: Kapersky was doing its job too well and blocked the process before it could even display a simple "Hello world". It warned me a long time after that, asking me repeatedly to delete the executable.
回答2:
try: int main(void) { printf("Hello World"); return 0; }
I may be wrong, but i think the problem is in the main() i think you need to change that to main(void)
回答3:
Just try this
Go to Settings->Compiler->Reset Defaults
Hope it works!
来源:https://stackoverflow.com/questions/16794754/codeblocks-default-hello-world-in-c-terminated-with-status-1993077897-or-1073