code::blocks default hello world in C terminated with status 1993077897 or -1073741510

白昼怎懂夜的黑 提交于 2021-02-05 09:33:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!