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 X-Authentication-Warning: james.esem.com: news set sender to nittka AT esem DOT com using -f Path: james.esem.com!not-for-mail From: Oliver Nittka Subject: Re: __stdcall in 3rd-party dll Date: 17 Feb 2000 12:56:12 +0100 Organization: ESEM Gmbh, Markdorf/Germany Lines: 43 Message-ID: References: <200002151634 DOT KAA03715 AT hp2 DOT xraylith DOT wisc DOT edu> NNTP-Posting-Host: edp22.esem.com X-Trace: james.esem.com 950788574 2952 192.168.1.22 (17 Feb 2000 11:56:14 GMT) X-Complaints-To: news AT esem DOT com NNTP-Posting-Date: 17 Feb 2000 11:56:14 GMT X-Newsreader: Gnus v5.7/Emacs 20.4 Xref: james.esem.com mailing-lists.cygwin:1005 To: cygwin AT sourceware DOT cygnus DOT com Mumit Khan writes: > Create a .def file that looks like the following: > > LIBRARY "gpib-32.dll" > EXPORTS > ibdev AT 24 > ibwrt AT 12 > ibrd AT 12 as always, you are right, mumit :-) i was absolutely sure that i had tried every possible combination of import lib / function prototypes / def file ... well, it works now :-) the only thing that i don't like with this approach is that i have to manually create the def-file using either the linker error output or the header-file to add the correct values for the decoration. looks like a job for some perl-script :-) because of that, i get back to my question: would't it be possible for ld to link to the undecorated symbols if it can't find the decorated ones ? i would be willing to (try to) do that patch, but perhaps there's something that prevents that approach ? > I don't understand why you see ibwrt AT 16, it should be ibwrt AT 12 given the oh, sorry. i typed that from memory and (when typing it) reminded myself serveral times to look up the actual error messages, because somebody might get confused ;-) > Regards, > Mumit thanks, mumit ! -- oly -- Oliver Nittka | nittka AT esem DOT com ESEM Grünau GmbH & Co. KG | http://www.esem.com Dornierstraße 6 | phone: +49 7544 9583-25 88677 Markdorf / Germany | fax: +49 7544 9583-60 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com