This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Fixed making DLL, but can't get rid of @n weirdness


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]