delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/20/19:22:56

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: Markus Hoenicka <Markus DOT Hoenicka AT uth DOT tmc DOT edu>
MIME-Version: 1.0
Message-ID: <14995.193.753000.902610@gargle.gargle.HOWL>
Date: Tue, 20 Feb 2001 23:41:53 +0000 (CT0)
To: cygwin AT cygwin DOT com
Subject: building DLLs (was:RE: New user help - dont understand Mount (and the rest))
In-Reply-To: <000a01c09a3b$b96c14b0$7074aa40@holstein-mobile.ASPECTDV.COM>
References: <sa9117a5 DOT 027 AT wmpl DOT com DOT au>
<000a01c09a3b$b96c14b0$7074aa40 AT holstein-mobile DOT ASPECTDV DOT COM>
X-Mailer: VM 6.75 under Emacs 20.6.1

Kevin Wright writes:
 > Here's a way to create dll's in a makefile:
 > 
 > OBJS=foo
 > BASE=foo
 > 
 > gcc -shared -o lib$(BASE).dll -Wl,--out-implib=lib$(BASE).dll.a \
 >     -Wl,--export-all -Wl,--enable-auto-image-base  \
 >     -Wl,--output-def=lib$(BASE)_.def $(OBJS) 
 > 

Is this some one-size-fits-all solution for all DLL pains on Cygwin?
I'd be glad if it was, but apparently I'm out of luck. I'm trying to
compile OpenSP (a SGML parser) using a DLL. Building the DLL works on
other platforms. I tried your suggestion above, but I get:

mhoenicka AT GIRCH19 ~/prog/OpenSP-1.5pre5/lib/.libs
$ gcc -shared -o libosp.dll -Wl,--out-implib=libosp.dll.a -Wl,--export-all -Wl,
--enable-auto-image-base -Wl,--output-def=libosp_.def ../*.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: libosp.dll.a
collect2: ld returned 1 exit status

I've seen some messages about the "symbol not defined" error but none
of these brought me closer to a dll. Any additional ideas?

regards,
Markus
-- 
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
Markus DOT Hoenicka AT uth DOT tmc DOT edu
http://ourworld.compuserve.com/homepages/hoenicka_markus/


--
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