[英]Why does my code keep failing in codeblocks?
Here's the code I wrote.这是我写的代码。
#include <stdlib.h>
#include <stdio.h>
int main(void){
printf("hello World.");
return 0;
}
This is the error message这是错误信息
Execution of '"C:\Users\Happy Birthday\Desktop\Coding\C++\C_C++ project\simple program.exe"' in 'C:\Users\Happy Birthday\Desktop\Coding\C++\C_C++ project' failed.|在“C:\Users\Happy Birthday\Desktop\Coding\C++\C_C++ 项目”中执行“C:\Users\Happy Birthday\Desktop\Coding\C++\C_C++ project\simple program.exe”失败。|
I figured it out.我想到了。 I had to go to the location of the bin for MinGW, copy and paste its address into the Toolchain executables tab of the global compiler settings, as opposed to auto detecting it.
我必须将 go 到 MinGW 的 bin 位置,将其地址复制并粘贴到全局编译器设置的 Toolchain executables 选项卡中,而不是自动检测它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.