0

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.

4

3 回答 3

3

问题已解决:卡巴斯基的工作做得太好了,甚至在它能够显示一个简单的“Hello world”之前就阻止了该进程。在那之后很长时间它警告我,反复要求我删除可执行文件。

于 2013-05-30T07:38:59.173 回答
0

试试这个去Settings->Compiler->Reset Defaults希望它有效!

于 2014-11-07T07:51:35.547 回答
0

尝试: int main(void) { printf("Hello World"); 返回0;}

我可能错了,但我认为问题出在 main() 我认为您需要将其更改为 main(void)

于 2013-05-28T14:42:59.663 回答