Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Mon, 20 Dec 1999 15:18:07 -0800 (PST) From: Alexandre Jose Reis Santoro To: cygwin AT sourceware DOT cygnus DOT com Subject: DLLs and STDCALL functions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 AT poset DOT stanford DOT edu) P.S. I'm running version b20 of cygwin. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com