C Codelite编译错误

标签 c mingw32 codelite

我刚刚将 CodeLite 安装到一台全新的 PC 上,但无法编译任何内容。我想用 C 语言编写一个控制台应用程序

Simple Executable (gcc)
Compiler: gnu gcc
Debugger: GNU gdb debugger

但是,我什至无法构建默认的“hello world”应用程序。我得到的只是这个错误:

  C:\Windows\system32\cmd.exe /C mingw32-make.exe -j 4 -e -f  Makefile
  'mingw32-make.exe' is not recognized as an internal or external command,
  operable program or batch file.

现在我“谷歌搜索”这个并发现,我必须设置 mingw32-make(我不必在其他 3 台计算机上这样做),但我找不到有关如何做到这一点的教程。

任何建议都将受到高度赞赏!

提前致谢。

最佳答案

CodeLite 不会为您安装 MinGW。你需要自己做。 显然,CodeLite 不知道在哪里可以找到 mingw32-make.exe,否则它不会只使用 mingw32-make.exe,而是使用 的完整路径>mingw32-make,类似于C:\TDM-GCC-64\bin\mingw32-make.exe

您需要做的是:

  • 从“帮助”->“运行设置向导”再次运行 CodeLite 设置向导
  • 按照步骤(共 5 个)进行操作,特别注意设置编译器步骤
    • 如果您之前安装过 MinGW,只需点击扫描按钮
    • 如果没有,请点击安装按钮
  • 打开您的项目设置 -> 常规页面,然后在编译器字段中选择您刚刚安装的编译器

关于C Codelite编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34099135/

相关文章:

c - 在 iPhone 上进行大量的 malloc 和 free 操作是否很慢?

c++ - 加载共享库时出错 : No such file or directory even after using LD_LIBRARY_PATH and changing $PATH

c - 如果文件已经打开,fopen 是否返回 NULL 指针?

c++ - -static-libstdc++ 适用于 g++ 但不适用于纯 gcc?

Git Bash 在 Windows 7 x64 上非常慢

c++ - 如何在 Codelite 中启用 C++11 特性

c++ - codelite 5.1 找不到 <QString>

c - strcat + strlen 有奇怪的行为

c - 我想使用一个开关盒而不是两个开关盒

c - 在 C 中使用 read() 和 write() 代替 scanf() 和 printf()