日食> CDT +西格温>如何配置 C++编译器?

发布于 2024-08-23 05:17:00 字数 400 浏览 4 评论 0原文

所以,我一直在寻找。我找不到任何地方专门讨论如何配置 Eclipse + CDT 来运行 gcc / gcc++ 编译器。

我在 Windows 机器上运行 Eclipse,但我已经安装了 Cygwin。

[编辑] 我已经安装了 Cygwin,并将 C:\Cygwin\bin 添加到我的路径环境变量中。我现在收到此错误:

**** 项目 helloWorld 的配置默认构建 ****

(无法运行程序“make”:正在启动 失败)

我已经确认 make 确实不存在,如消息所示。我很困惑 Cygwin 在没有 make 的情况下安装了 g++ / gcc,但无论如何。我正在安装可用 cygwin pkg 的开发部分的所有其余部分。

So, I've been looking all over. I can't find anywhere that talks about specifically how to configure Eclipse + CDT to run the gcc / gcc++ compiler.

I am running Eclipse on a windows box, but I've installed Cygwin.

[edit] I've installed Cygwin, and I've added C:\Cygwin\bin to my path environment variable. I'm now getting this error:

**** Build of configuration Default for project helloWorld ****

(Cannot run program "make": Launching
failed)

I've confirmed that make is indeed not there as the message suggests. I'm confused that Cygwin installed g++ / gcc without make, but whatever. I'm installing all the rest of the development section of the available cygwin pkgs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

耀眼的星火 2024-08-30 05:17:00

您需要将 Windows 的 PATH 环境变量设置为 gcc 和 make 所在的位置(C:\cygwin\bin ?)。然后您可以简单地使用 makefile 来编译您的应用程序(或使用通常由 eclipse 生成的 makefile)。

you need to set the PATH environment variable of windows to where is located gcc and make (C:\cygwin\bin ?). Then you can simply use a makefile to compile your application (or use the makefile generally generated by eclipse).

美人迟暮 2024-08-30 05:17:00

在环境路径变量中输入以下内容:
c:\cygwin\bin\
就是在 bin 后面加一个反斜杠。
现在尝试运行

type in the following in the environment path variables:
c:\cygwin\bin\
that is just put a backslash after bin.
Now try to run

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文