Mail Archives: cygwin/2001/07/22/00:27:07
------=_NextPart_000_005E_01C112B2.00997460
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: 7bit
"Christopher Hicks" <chicks AT chicks DOT 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.
------=_NextPart_000_005E_01C112B2.00997460
Content-Type: application/octet-stream;
name="dlltool.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="dlltool.c.diff"
--- dlltool.c Fri May 18 11:23:52 2001
+++ dlltool.c Fri May 18 11:24:56 2001
@@ -1865,7 +1865,7 @@
if (!exp->noname || show_allnames)
{
fprintf (f, "n%d: %s \"%s\"\n",
- exp->ordinal, ASM_TEXT, exp->name);
+ exp->ordinal, ASM_TEXT, xlate (exp->name));
if (exp->forward != 0)
fprintf (f, "f%d: %s \"%s\"\n",
exp->forward, ASM_TEXT, exp->internal_name);
------=_NextPart_000_005E_01C112B2.00997460
Content-Type: text/plain; charset=us-ascii
--
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/
------=_NextPart_000_005E_01C112B2.00997460--
- Raw text -