小编DJ *_*yte的帖子

C++你好世界不工作?

我是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))
Run Code Online (Sandbox Code Playgroud)

这是程序:

#include <iostream>

using namespace std;

int main()
{
    cout << "Helloworld!" << endl;
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

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

"hello world again - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain …
Run Code Online (Sandbox Code Playgroud)

c++ debugging gcc

5
推荐指数
1
解决办法
1870
查看次数

标签 统计

c++ ×1

debugging ×1

gcc ×1