delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/18/13:39:24

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
Message-ID: <002b01c0afdb$6144eea0$3c906520@fortin>
From: "John Fortin" <fortinj AT attglobal DOT net>
To: <cygwin AT cygwin DOT com>
References: <20010318064139 DOT 88232 DOT qmail AT rootlabs DOT com>
Subject: Re: Building non-cygwin DLL with cyg-gcc
Date: Sun, 18 Mar 2001 13:43:51 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

> There seem to be two methods of building DLLs, the User Guide method
> (invoke dlltool multiple times) and the recent Mailing List method (use
> the undocumented --output-implib ld switch).  If I do the ML method, I get
>
>   > gcc -Wl,--out-implib,file.a -shared -o file.dll file.o
>   Cannot export _bss_end__: symbol not defined
>   Cannot export _bss_start__: symbol not defined
>   Cannot export _data_end__: symbol not defined
>   Cannot export _data_start__: symbol not defined
>   Creating library file: Packet.a
>   collect2: ld returned 1 exit status
>   make: *** [main] Error 1

I'll ask this again...  Is the above the expected result of using -shared.
Why is ld trying to export _bss_* and _data_*.
Is it a requirement now to provide a .def file??  The mailing list archives
talk a bit around this issue.

John



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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