我刚刚下载了代码块,并尝试运行程序,但它不起作用。
它说:
Project/Target: "o g l - 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?!
Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Tried to run compiler executable 'C:\Users\Diana\Desktop\INFORM A T I C A/bin/ gcc.exe ', but failed!
Tried to run compiler executable 'C:\Users\Diana\Desktop\INFORMATICA/gcc.exe', but failed!
Skipping...
Nothing to be done (all items are up-to-date).
答案 0 :(得分:0)
您的错误表明,IDE无法找到编译器工具链。所以Code :: Blocks是一个IDE。不是编译器。您可以选择使用相信的编译器(mingw)安装Code :: Blocks,也可以不使用编译器。我还没有亲自使用Code :: Blocks。但是在网站上,它有几个下载选项。
codeblocks-17.12-setup.exe
codeblocks-17.12-setup-nonadmin.exe
codeblocks-17.12-nosetup.zip
codeblocks-17.12mingw-setup.exe
codeblocks-17.12mingw-nosetup.zip
codeblocks-17.12mingw_fortran-setup.exe
看看是否可以下载显示
codeblocks-17.12mingw-setup.exe
另外,我认为在常规安装过程中,它可能只会问您是否要与IDE一起安装mingw,并且您可以在其中安装它。