使用 code::blocks
写 C/C++
遇到了无法编译运行代码,不过现在已经解决,把我的解决方法分享给大家。
遇到的问题
使用 code::blocks
的时候遇到了无法编译运行,错误提示信息如下。
Project/Target: "PROJECTNAME - Debug/Release":
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\SOMEONE\Applications\CodeBlocks\MinGW/bin/mingw32-gcc.exe', but failed!
Skipping...
Nothing to be done (all items are up-to-date).
解决方法
- 首先在菜单栏中找到
Setting
→Compiler
。