1

我已经cygwin安装并且可以正常从命令行使用make.

现在如何用eclipse编译同一个项目?

它说

**** Build of configuration Default for project leptonica-1.69 ****

****  WARNING: The "Default" Configuration may not build  ****
****  because it uses the "cdt.managedbuild.toolchain.gnu.cygwin.base"  ****
****  tool-chain that is unsupported on this system.  ****

****  Attempting to build...  **** 

make all 

Cannot run program "make": Launching failed
Error: Program "make" is not found in PATH

如果我尝试编译。

我发现没有地方可以设置 CDT 的某个位置cygwin。当然,我不想将cygwin路径添加到全局 Windows 路径。

是否可以只为eclipse设置它?

4

1 回答 1

0

您可以在 中设置路径(和其他变量)Eclipse Preferences -> C/C++ -> Build -> Environment,即添加PATH值为 的变量${PATH};C:\cygwin\bin

(编辑:用我误解的东西删除了第二段)

于 2015-06-07T00:29:03.643 回答