Eclipse> CDT + Cygwin>如何配置C ++编译器? [英] Eclipse > CDT + Cygwin > How to configure a C++ compiler?
问题描述
所以,我一直在看。我找不到任何地方谈论具体如何配置Eclipse + CDT来运行gcc / gcc ++编译器。
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.
我在Windows上运行Eclipse,但是我安装了Cygwin。
I am running Eclipse on a windows box, but I've installed Cygwin.
我已经安装Cygwin,我已经添加了C:\Cygwin\bin到我的路径环境变量。我现在收到此错误:
[edit] I've installed Cygwin, and I've added C:\Cygwin\bin to my path environment variable. I'm now getting this error:
****项目配置默认值helloWorld ****
**** Build of configuration Default for project helloWorld ****
(无法运行程序make:启动
失败)
(Cannot run program "make": Launching failed)
ve确认make确实不在那里,因为消息暗示。我很困惑Cygwin安装g ++ / gcc没有make,但无论如何。我正在安装所有可用的cygwin pkgs的开发部分。
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.
推荐答案
您需要将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).
这篇关于Eclipse> CDT + Cygwin>如何配置C ++编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!