简体   繁体   English

CodeBlocks C++ 程序未运行

[英]CodeBlocks C++ program not running

Few days back I downloaded CodeBlocks for C++.几天前,我下载了 C++ 的 CodeBlocks。 I tried to run a HelloWorld program but it does not runs.我试图运行一个 HelloWorld 程序,但它没有运行。 When I click on Build and Run nothing happens.当我单击构建并运行时,什么也没有发生。 My compiler location is right i think (C:\Program Files\CodeBlocks\MinGW)我认为我的编译器位置是正确的 (C:\Program Files\CodeBlocks\MinGW)

Below the inteface is see this error message:- No such file or directory.在界面下方看到此错误消息:-没有这样的文件或目录。 Please Help!请帮忙!

enter image description here [enter code here][1]在此处输入图像描述[enter code here][1]

It looks like you have something wrong in your compiler settings.看起来您的编译器设置有问题。 Maybe look at this question: CodeBlocks: [highlight: No such directory found也许看看这个问题: CodeBlocks: [highlight: No such directory found

All I did was go to "Compiler Settings" ("Settings" -> "Compiler" -> Global compiler settings), and selected "Reset Defaults".我所做的只是 go 到“编译器设置”(“设置”->“编译器”-> 全局编译器设置),然后选择“重置默认值”。

Does that work for you?那对你有用吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM