This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Building non-cygwin DLL with cyg-gcc
- To: <cygwin at cygwin dot com>
- Subject: Re: Building non-cygwin DLL with cyg-gcc
- From: "John Fortin" <fortinj at attglobal dot net>
- Date: Sun, 18 Mar 2001 13:43:51 -0500
- References: <20010318064139.88232.qmail@rootlabs.com>
> 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