This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Fixed making DLL, but can't get rid of @n weirdness
- To: "Christopher Hicks" <chicks at chicks dot net>
- Subject: Re: Fixed making DLL, but can't get rid of @n weirdness
- From: "Dmitry Timoshkov" <dmitry at baikal dot ru>
- Date: Sun, 22 Jul 2001 13:27:06 +0800
- Cc: <cygwin at cygwin dot com>
- References: <Pine.LNX.4.33.0107211431070.25320-100000@yakko.chicks.net>
"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.
dlltool.c.diff
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/