简体   繁体   English

Eclipse CDT Cygwin错误

[英]Eclipse CDT Cygwin error

i have a problem with eclipse CDT and cygwin, when i try to build a simple hello world project i have this error: 我在使用Eclipse CDT和cygwin时遇到问题,当我尝试构建一个简单的hello world项目时,出现以下错误:

 make all 
Building file: ../src/test.cpp
Invoking: Cygwin C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o "src/test.o" "../src/test.cpp"
C:\shell.w32-ix86\make.exe: *** [src/test.o] Error 1

14:37:48 Build Finished (took 178ms)

Cygwin is in the path and commands like 'g++' or 'make' works fine. Cygwin在路径中,“ g ++”或“ make”之类的命令可以正常工作。

Thank in advance for your help. 预先感谢您的帮助。

Follow this tutorial to properly set up cygwin with Eclipse CDI. 请遵循教程,以使用Eclipse CDI正确设置cygwin。 After completing all the steps, add one more path dependency on: Project Properties -> C/C++ General -> Paths and Symbols -> Includes GNU C++ with the value to : ${CYGWIN_HOME}/usr/i686-pc-cygwin/sys-root/usr/bin . 完成所有步骤后,再添加一个路径依赖项: Project Properties -> C/C++ General -> Paths and Symbols -> Includes GNU C++ ,其值为: ${CYGWIN_HOME}/usr/i686-pc-cygwin/sys-root/usr/bin This solved all the issues arising on Eclipse CDT with CYGWIN. 这解决了使用CYGWIN在Eclipse CDT上出现的所有问题。

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

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