我已经在我的计算机上安装了Eclipse for Java几年,并决定安装CDT并学习C.我安装了两个MinGW
并且Cygwin
CDT在我创建一个新项目时检测并尝试使用它们.
我选择File > New C++ Project
,选择Hello World C++ Project
和CygwinGCC
工具链.我将项目命名为"asdf"并点击工具栏中的"Build Debug".编译器完成且没有错误.我点击Run并没有任何反应.
手动浏览到项目目录并运行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: …
Run Code Online (Sandbox Code Playgroud)