【发布时间】:2011-10-08 19:35:56
【问题描述】:
我已经在我的计算机上安装了 Java 版 Eclipse 几年了,我决定安装 CDT 并学习 C。我同时安装了 MinGW 和 Cygwin,并且 CDT 在我制作时检测并尝试使用它们一个新项目。
我选择File > New C++ Project 并选择Hello World C++ Project 和CygwinGCC 工具链。我将项目命名为“asdf”并点击工具栏中的“Build Debug”。编译器完成没有错误。我点击运行,没有任何反应。
手动浏览到项目目录并运行 asdf.exe 给我一个错误提示:"The program can't start because cygwin1.dll is missing from your computer. Try reinstalling the program to fix this problem."
使用 MinGW 也会发生同样的情况,只是缺少一个不同的 dll。
我需要做什么才能获得可用的 .exe?
(我运行的是 Windows 7 x64 和最新版本的 Eclipse 和 CDT。)
编辑: 编译器输出如下:
**** Build of configuration Debug for project asdf ****
make all
Building file: ../src/asdf.cpp
Invoking: Cygwin C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/asdf.d" -MT"src/asdf.d" -o"src/asdf.o" "../src/asdf.cpp"
cygwin warning:
MS-DOS style path detected: C:\Users\Shawn\Dropbox\eclipse\asdf\Debug
Preferred POSIX equivalent is: /cygdrive/c/Users/Shawn/Dropbox/eclipse/asdf/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Finished building: ../src/asdf.cpp
Building target: asdf.exe
Invoking: Cygwin C++ Linker
g++ -o"asdf.exe" ./src/asdf.o
Finished building target: asdf.exe
【问题讨论】:
标签: eclipse dll cygwin exe eclipse-cdt