C++你好世界不工作?

 常年等奖中869 发布于 2023-02-08 16:19

我是C++的新手,我自学.我正在使用code::blocks,并有一个问题.当我写下你好世界时,没有任何反应.这是调试器窗口中的内容:

Building to ensure sources are up-to-date
Selecting target: 
Debug
ERROR: You need to specify a debugger program in the debuggers's settings.
(For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))

这是程序:

#include 

using namespace std;

int main()
{
    cout << "Helloworld!" << endl;
    return 0;
}

如果你需要它,这里是构建日志:

"hello world again - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?!
Goto "Settings->Compiler and debugger...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date).

ioanD.. 6

尝试再次下载调试器和编译器.当我遇到这个问题时,它对我有用.尝试从互联网上下载'gdb.exe'.

1 个回答
  • 尝试再次下载调试器和编译器.当我遇到这个问题时,它对我有用.尝试从互联网上下载'gdb.exe'.

    2023-02-08 16:21 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有