简体   繁体   English

C ++ Cygwin和Eclipse-找不到二进制错误

[英]c++ cygwin and eclipse - binary not found error

I've spent hours looking up how to fix this problem but nothing has worked. 我花了几个小时寻找如何解决此问题,但没有任何效果。 I have eclipse Indigo with CDT and ive downloaded cygwin and packages such as g++, make file, etc. When I try to execute any code I end up with the error Launch failed. Binary not found. 我用CDT蚀了Indigo,并且ive下载了cygwin以及g ++,make文件等软件包。当我尝试执行任何代码时,都会遇到错误“ Launch failed. Binary not found. Launch failed. Binary not found. I've also set the system path C:\\cygwin\\bin. 我还设置了系统路径C:\\ cygwin \\ bin。 How can I set up eclipse so I can use it as my IDE for c++? 如何设置eclipse,以便将其用作c ++的IDE?

Found the problem, I didn't press the hammer button to build the project first. 发现问题后,我没有按锤子按钮来首先构建项目。 I've only used eclipse for java and I could just hit run and everything would work fine. 我只为Java使用eclipse,我可以按一下run键,一切都会正常进行。

Try downloading MinGW, and using those compilers. 尝试下载MinGW,然后使用这些编译器。 The Cygwin tools require libraries that Eclipse may not load. Cygwin工具需要Eclipse无法加载的库。 The MinGW executables do not require any additional environment like Cygwin does. MinGW可执行文件不需要像Cygwin那样的任何其他环境。

Also, in order to use most Cygwin executables, you need to launch the Cygwin environment first. 另外,为了使用大多数Cygwin可执行文件,您需要首先启动Cygwin环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM