简体   繁体   English

由于缺少cygwin1.dll而无法启动...目标没有依赖性

[英]Cannot start because cygwin1.dll is missing… Goal is no dependencies

I'm using NetBeans IDE to make a simple application. 我正在使用NetBeans IDE制作一个简单的应用程序。 When I try to run it outside of NetBeans it throws an error asking for cygwin1.dll. 当我尝试在NetBeans之外运行它时,抛出错误,询问cygwin1.dll。 How can I make an application that is standalone? 如何制作独立的应用程序? I've already had to add a few flags to the linker (-static-libstdc++ -static-libgcc) and this has taken away two other dependency errors I was getting. 我已经必须在链接器中添加一些标志(-static-libstdc ++ -static-libgcc),这消除了我遇到的另外两个依赖错误。 Is there another flag I can use to take this one away? 我是否可以使用其他标志将其取走? How do you find such knowledge on your own? 您如何独自找到这些知识?

How can I make an application that is standalone? 如何制作独立的应用程序?

If you're building a Cygwin program you will need the Cygwin dll. 如果要构建Cygwin程序,则需要Cygwin dll。 Cygwin is not merely some compiler implementation library, it's an attempt to bring a POSIX environment to Windows. Cygwin不仅是一些编译器实现库, 它还试图将POSIX环境引入Windows。

I'm not aware of any way to statically link the Cygwin libraries. 我不知道有任何静态链接Cygwin库的方法。 Apparently the folk maintaining Cygwin don't know one either . 显然,维护Cygwin的人也不认识

One alternative, if you do not need POSIX support, is MinGW-w64 . 如果不需要POSIX支持, 一种替代方法是MinGW-w64

How do you find such knowledge on your own? 您如何独自找到这些知识?

In this case I already knew, but I punched "statically link cygwin1.dll" into Google to find an authoritative link. 在这种情况下,我已经知道了,但是我将“静态链接cygwin1.dll”打入Google以查找权威链接。

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

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