Я новичок в C++, и я самоучитель. Я использую code::blocks
, и у вас есть вопрос. Когда я пишу привет мир, ничего не происходит. Это то, что написано в окне отладчика:C++ привет мир не работает?
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
Ваша программа, вероятно, отлично работает, если вы запустите ее без отладчика. –