delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/21/07:38:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de>
To: "Binutils" <binutils AT sources DOT redhat DOT com>,
"Cygwin" <cygwin AT sources DOT redhat DOT com>
Cc: "Alan Modra" <amodra AT bigpond DOT net DOT au>
Subject: AW: Problems with generating kde2 dlls under cygwin
Date: Sat, 21 Jul 2001 13:41:28 +0200
Message-ID: <000601c111da$14390b30$b06707d5@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
In-Reply-To: <20010721191921.F14307@bubble.sa.bigpond.net.au>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

> -----Ursprüngliche Nachricht-----
> Von: cygwin-owner AT sources DOT redhat DOT com
> [mailto:cygwin-owner AT sources DOT redhat DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019