| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| 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 <nittka AT esem DOT com> |
| Subject: | Re: Linking an existing DLL |
| Date: | 17 Mar 2000 10:12:21 +0100 |
| Organization: | ESEM Gmbh, Markdorf/Germany |
| Lines: | 28 |
| Message-ID: | <u1z5aklje.fsf@esem.com> |
| References: | <38D0EA1A DOT BCC4D266 AT nyp DOT org> |
| NNTP-Posting-Host: | edp22.esem.com |
| X-Trace: | james.esem.com 953284343 2155 192.168.1.22 (17 Mar 2000 09:12:23 GMT) |
| X-Complaints-To: | news AT esem DOT com |
| NNTP-Posting-Date: | 17 Mar 2000 09:12:23 GMT |
| X-Newsreader: | Gnus v5.7/Emacs 20.4 |
| Xref: | james.esem.com mailing-lists.cygwin:1645 |
| To: | cygwin AT sourceware DOT cygnus DOT com |
"Joan M. Moss" <jmm9001 AT nyp DOT org> writes:
> \WINNT\system32\ I do not have the source for the DLL so I can NOT
> build the DLL on cygwin B20.1. However, I would like to access it under
> cygwin B20.1. Is this possible?
with the cygwin-1.0CD (and very likely with the latest snapshots, too)
i succeeded with just linking in the DLL in question like that:
probe: probe.c
$(CC) $(CFLAGS) -o probe probe.c /cygdrive/d/WINNT/foreign.dll
however, if the functions in the DLL are _stdcall, but they are
exported without the decoration (without ..@nn), you've got to create
an import-library manually.
contact me, if the above gives errors like
undefined reference to `SomeFunction AT 8'
hth
-- 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |