Fixed making DLL, but can't get rid of @n weirdness
Dmitry Timoshkov
dmitry@baikal.ru
Sat Jul 21 21:26:00 GMT 2001
"Christopher Hicks" <chicks@chicks.net> wrote:
> I found much better documentation at
> http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/dll-stuff/index.html
> so I've finally been able to create a DLL!
>
> But regardless of what options I've tried to provide to dlltool and
> dllwrap it's still adding @/n/ to the symbols.
[skipped]
I'm using the following command lines to build DLLs under Cygwin:
dllwrap -o $(LIBRARY).dll $(OBJS) $(LIBS) -k --def $(LIBRARY).def -Wl,--kill-at,--enable-stdcall-fixup
dlltool --kill-at --input-def $(LIBRARY).def --output-lib lib$(LIBRARY).a
Notes:
1. You have to have decorated (with @) exported names in the .def file.
2. Apply the attached patch to dlltool.c from the binutils provided by Cygwin
and rebuild dlltool.
Good luck.
--
Dmitry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlltool.c.diff
Type: text/x-diff
Size: 402 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010721/60be0b76/attachment.bin>
More information about the Cygwin
mailing list