编译 C 程序在 Codeblocks 中给出 "can't find compiler executable in your search path (GNU GCC compiler)"
Compile a C program gives "can't find compiler executable in your search path (GNU GCC compiler)" in Codeblocks
我第一次在 windows 7 中安装了代码块并尝试 运行 一个简单的 C 程序但是我得到这个错误?
can't find compiler executable in your search path (GNU GCC compiler)
我尝试了很多方法来解决它但无法编译。
你有没有安装Mingw编译器或者其他类似的编译器?如果不先安装它。完成后,您需要设置代码块以使用该编译器。您可以转到 settings>compiler settings
并在那里设置必要的选项。您可能需要参考安装 Mingw 或其他编译器的位置。请注意,编译器可执行文件对于 C 是 gcc
,对于 C++ 是 g++
,我猜链接器是 ld
。调试器是 gdb
。您需要告诉代码块这些位于何处。
我也收到了那个错误。我使用 Settings -> Compiler -> Global compiler settings -> Toolchain executables -> Auto detect 修复了它。
我第一次在 windows 7 中安装了代码块并尝试 运行 一个简单的 C 程序但是我得到这个错误?
can't find compiler executable in your search path (GNU GCC compiler)
我尝试了很多方法来解决它但无法编译。
你有没有安装Mingw编译器或者其他类似的编译器?如果不先安装它。完成后,您需要设置代码块以使用该编译器。您可以转到 settings>compiler settings
并在那里设置必要的选项。您可能需要参考安装 Mingw 或其他编译器的位置。请注意,编译器可执行文件对于 C 是 gcc
,对于 C++ 是 g++
,我猜链接器是 ld
。调试器是 gdb
。您需要告诉代码块这些位于何处。
我也收到了那个错误。我使用 Settings -> Compiler -> Global compiler settings -> Toolchain executables -> Auto detect 修复了它。