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 sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20010512025148.2365.qmail@web6402.mail.yahoo.com> Date: Sat, 12 May 2001 12:51:48 +1000 (EST) From: =?iso-8859-1?q?Danny=20Smith?= Subject: Re: Linking with "stdcall" library To: Dmitry Timoshkov Cc: cygwin AT cygwin DOT com In-Reply-To: <002a01c0da87$1d815830$c6823bd5@dima> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit --- Dmitry Timoshkov wrote: > "Danny Smith" wrote: > > > If you really want the undecorated name as well, add an alias: > > EXPORTS > > MyCloseHandle AT 4 > > MyCloseHandle=MyCloseHandle AT 4 > > Yes, that will fix the problem. But how it could be automated? > How the .def file with both names could be created from a .dll file? > I checked libraries provided by cygwin in C:\cygwin\lib: libkernel32.a > libuser32.a, etc. They all have both undecorated and decorated names and > of course linking with them has no problems. How they were created? > > Thanks for your help. > -- -- start of test-dll.def -- EXPORTS MyCloseHandle AT 4 -- end of test-dll.def -- dlltool --kill-at --input-def test-dll.def --output-lib libtest-dll.a 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