This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
DLLs and STDCALL functions
- To: cygwin at sourceware dot cygnus dot com
- Subject: DLLs and STDCALL functions
- From: Alexandre Jose Reis Santoro <santoro at anna dot stanford dot edu>
- Date: Mon, 20 Dec 1999 15:18:07 -0800 (PST)
Sorry if this is old hat, but I could not find information on it in the
FAQ and repository.
I have no trouble linking to functions in dll files that use the CDECL
interface.
'impdef file.dll > file.def'
gives me the list of exported functions, and
'dlltool --dllname file.dll--def file.def --output-lib libfile.a'
give me the necessary libfile.
However, this same process does not work for functions that conform to the
STDCALL format. I tried adding the '-k' option to dlltool, as well as
editing the def file removing both the leading underscore and the '@nn'
tail of the function name (and combinations thereof). Still no success.
Anyone can help me figure out what I'm doing wrong?
- Alex Santoro (santoro@poset.stanford.edu)
P.S. I'm running version b20 of cygwin.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com