简体   繁体   English

为什么我的代码在代码块中不断失败?

[英]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.

相关问题 为什么我的 CodeBlocks 应用程序总是无法执行代码? - Why does my CodeBlocks app keep failing to execute code? 为什么我的代码在 Visual 中不起作用,但在 CodeBlocks 中起作用? - Why doesn't my Code work in Visual, but does in CodeBlocks? 为什么我的程序在Xcode上而不在代码块上运行 - Why does my program run on Xcode but not on codeblocks 为什么这个C代码在Codeblocks中编译,但在Visual Studio中不编译? - Why does this C code compile in Codeblocks, but not in Visual Studio? 为什么我的测试用例会一直失败? - Why do my test cases keep failing? 为什么我的 C 代码在命令提示符中不断返回 0? - Why does my C code keep returning 0's in the command prompt? 为什么我的代码不后退并将输入保留在缓冲区中? - Why does my code not rewind and keep the inputs in the buffer? 为什么我的代码块上没有显示输出? - Why there is no output showing on my codeblocks? 为什么我的代码在出现任何问题之前就失败了? - Why is my code failing before any issues with is? 为什么字符序列/// *在代码块12.11中更改了其余源文件的字体? - Why does the character sequence //(* change the font of the rest of my source file in codeblocks 12.11?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM