Sha*_*ton 38 eclipse dll cygwin exe eclipse-cdt
我已经在我的计算机上安装了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:
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
Run Code Online (Sandbox Code Playgroud)
phl*_*tos 69
此错误消息表示Windows无法找到"cygwin1.dll".Cygwin gcc创建的程序依赖于此DLL.该文件是cygwin的一部分,因此很可能它位于C:\ cygwin\bin中.要解决此问题,您只需将C:\ cygwin\bin(或可以找到cygwin1.dll的位置)添加到系统路径.或者,您可以将cygwin1.dll复制到Windows目录中.
有一个名为DependencyWalker的好工具可以从http://www.dependencywalker.com下载.您可以使用它来检查可执行文件的依赖关系,因此,如果您检查生成的程序,它会告诉您哪些依赖项缺失以及哪些依赖项已解决.
归档时间: |
|
查看次数: |
100745 次 |
最近记录: |