日食> CDT +西格温>如何配置 C++编译器?
所以,我一直在寻找。我找不到任何地方专门讨论如何配置 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要将 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).
在环境路径变量中输入以下内容:
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