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: Linking with "stdcall" library


"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

I faced with new problem arranging my build environment. The above
solution provides a way to create correct import library using .def
file with exported names with stdcall naming convention.

But the same .def file can't be used to create the library (.dll) itself
using dllwrap:
dllwrap --kill-at --dllname test-dll.dll --def test-dll.def test-dll.o

Resulting exported names in the created .dll have @XX suffix.

Do I have to have TWO DIFFERENT .def files? One for creating import library,
and another for creating .dll?

Thanks in advance.
--
Dmitry.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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