This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Linking with "stdcall" library
- To: Dmitry Timoshkov <dmitry at baikal dot ru>
- Subject: Re: Linking with "stdcall" library
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Date: Sat, 12 May 2001 14:20:01 +1000 (EST)
- Cc: cygwin at cygwin dot com
--- Dmitry Timoshkov <dmitry@baikal.ru> wrote: > "Danny Smith"
<danny_r_smith_2001@yahoo.co.nz> wrote:
>
> > -- start of test-dll.def --
> > EXPORTS
> > MyCloseHandle@4
> > -- end of test-dll.def --
> >
> >
> > dlltool --kill-at --input-def test-dll.def --output-lib libtest-dll.a
>
> Yes!!!!!!!!
>
> Thank you very much, Danny!
>
> Just a tiny addition for those who will search for a solution in the
> archives: add '--dllname DLLNAME' to the command line or line 'NAME DLLNAME'
> to the .def file to provide correct dll name for the linker.
>
> Another related question: how either an import library or just a .def file
> could be created from a .dll file?
>
> Again, thanks for your help.
> --
> Dmitry.
>
Try pexports, last seen here:
http://www.is.lg.ua/~paul/devel/binutils.html
(Really need the headers as well to get @nn stdcall decoration right).
Danny
_____________________________________________________________________________
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple