我是C++的新手,我是自學的。我正在使用code::blocks
,並有一個問題。當我寫你好世界時,沒有任何反應。這是在調試器窗口說:C++ hello world不工作?
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 <iostream>
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).
全局編譯器設置中有什麼?是否有調試器填寫? – chris
如果你在沒有調試器的情況下運行它,你的程序可能工作正常。 –