how to static link?

Corinna Vinschen
Wed Jun 13 02:01:00 GMT 2001

On Wed, Jun 13, 2001 at 11:11:21AM +0800, D G wrote:
> I've tried linking with gcc -static, and even specified static libraries as /usr/X11R6/lib/libX11.a, but still cygwin produces a dynamically linked executable.  How can I compile a statically linked executable?

You can't. Cygwin isn't statically linkable.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

Want to unsubscribe from this list?
Check out:

More information about the Cygwin mailing list