代码块找不到我的编译器 [英] codeblocks can't find my compiler

查看:80
本文介绍了代码块找不到我的编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,所以我下载了Codeblocks,并且我的计算机上已经有一个cygwin终端,我经常使用该终端来编译和运行C程序,但是当我尝试在CodeBlocks中构建程序时,它给了我一个错误:

OK, so I downloaded Codeblocks and I already have a cygwin terminal on my computer that I regularly use to compile and run C programs, but when I try to build a program in CodeBlocks, it gives me an error:

编译器的设置(GNU GCC编译器)无效,因此Code :: Blocks无法找到/运行编译器。

当我将Cygwin GCC作为默认编译器时,我不知道为什么找不到我的编译器,或者为什么要寻找GNU GCC编译器。

I don't know why it can't find my compiler or why it's looking for GNU GCC compiler when I have Cygwin GCC as the default compiler.

推荐答案

我遇到了同样的问题。我已经通过设置-> 编译器-> 全局编译器设置来解决问题 code>-> 工具链可执行文件(标签)。在那里,单击 Program Files ,然后将 C编译器重命名为 gcc.exe C ++编译器 g ++。exe

I faced the same problem. I have fixed out by going to Setting -> Compiler -> Global Compiler Settings -> Toolchain Execuatables (tab). There, click on Program Files and then rename C compiler to gcc.exe and C++ compiler to g++.exe.

这篇关于代码块找不到我的编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆