This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AW: Problems with generating kde2 dlls under cygwin


> -----Ursprüngliche Nachricht-----
> Von: cygwin-owner@sources.redhat.com
> [mailto:cygwin-owner@sources.redhat.com]Im Auftrag von Alan Modra
> Gesendet am: Samstag, 21. Juli 2001 11:49
> An: Ralf Habacker
> Cc: Binutils; Cygwin
> Betreff: Re: Problems with generating kde2 dlls under cygwin
>
> On Sat, Jul 21, 2001 at 11:32:36AM +0200, Ralf Habacker wrote:
> > g++ -shared <flags> -Wl,--whole-archive <objs> -Wl,-no-whole-archive
> > <deplibs>
> >
> > and if <deplib> are import libs of other shared libraries.
> > If <deplib> contains a static lib, the used symbols of this lib
> are always
> > exported.
>
> Why do you think they should not be exported?  A static lib is just an
> archive of object files.  When object files are retrieved from a static
> lib to satisfy undefined syms, they are treated the same as if you had
> specified the individual object files on the command line.
>
Thats right, but the problem is, if you add a static lib to resolve symbol
in
two dlls for example a.dll and b.dll and a.dll contains symbols needed by
b.dll,
linking of b.dll will fail because of duplicate symbols error.

> Alan
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]