问题描述
所以我想运行C写的我在eclipse编译它我的第一个世界您好PROG并没有错误,但是当我尝试运行它,我得到:
这个应用程序未能启动,因为cygwin1.dll没有被发现。
我发现这似乎表明我应该把它添加到Windows路径,我用来做到这一点。在我的环境变量,所以,现在路径有; C:\\ cygwin的\\斌\\ cygwin1.dll追加到末尾。仍然没有worky。任何人都有一个线索我可能是做错了?我的'程序'只是看起来像这样的:
的#include<&stdio.h中GT;主要()
{
的printf(你好,世界\\ n);
}
PATH环境变量需要包括包含目录cygwin1.dll,不cygwin1.dll本身的路径。因此,只要确保路径具有字符串C:\\ Cygwin的\\ bin中。
它
So I'm trying to run my first hello world prog written in C. I compiled it in eclipse and get no errors, but when I try to run it I get:
"This application has failed to start because cygwin1.dll was not found."
I found this post which seems to indicate I should add it to Windows PATH, and I used this to do that. So now "Path" in my environment variables has ";C:\cygwin\bin\cygwin1.dll" appended to the end. Still no worky. Anyone have a clue what I might be doing wrong? My 'program' just looks like this:
#include <stdio.h>
main()
{
printf("hello, world\n");
}
The PATH environment variable needs to include the directory containing cygwin1.dll, not the path to cygwin1.dll itself. So just make sure that PATH has the string "C:\cygwin\bin"
in it.
这篇关于运行C写的。我怎样才能让Windows觉得这是一个程序时Cygwin1.dll“没有发现”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!