Mail Archives: cygwin/2001/02/20/19:22:56
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 -