This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: ld -shared
- To: cookj at cs dot man dot ac dot uk
- Subject: Re: ld -shared
- From: DJ Delorie <dj at delorie dot com>
- Date: Fri, 26 May 2000 14:16:06 -0400
- CC: cygwin at sourceware dot cygnus dot com
- References: <200005261714.SAA52440@ceratops>
> Is there any plans to make them work in the same way as shared
> libraries on a Unix machine (I dont know if this is possible or even
> desirable!).
Possible, yes, but not practical. Windows already has a mechanism
(dlls) so the gains aren't worth the effort. If you want real shared
libraries, get Interix, which runs on the posix side of NT, or get
Linux.
> I can see how linking an application against either A, B or C will
> work (B and C should automatically include A and so I would not need
> to link explicitly against this). But, can I link an application
> against both B *and* C without causing a problem since A will now be
> included twice.
Yes. Windows resolves those issues when it loads the DLLs. Your
program doesn't even need to know that B and C use A, since it only
sees the import libraries, not the whole DLL's objects.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com