This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking an existing DLL


"Joan M. Moss" <jmm9001@nyp.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@8'


hth
  -- oly
-- 
Oliver Nittka              | nittka@esem.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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]