且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

你可以静态编译一个cygwin应用程序吗?

更新时间:2023-10-09 23:39:04

不,它目前不可能静态链接到cygwin1.dll;如果你的应用程序不使用unix仿真(即纯win32),你可以将-mno-cygwin传递给编译器。

Nope, it's currently not possible to statically link against cygwin1.dll; if your application does not use unix emulation (i.e. pure win32) you can pass -mno-cygwin to the compiler.

参见常见问题:

http://cygwin.com/faq/faq.html# faq.programming.win32-no-cygwin

http://cygwin.com/faq/faq.html#faq.programming.static-linking