* Re: Linking an existing DLL
@ 2000-03-16 6:19 Ãystein O Johansen
0 siblings, 0 replies; 3+ messages in thread
From: ÃÂystein O Johansen @ 2000-03-16 6:19 UTC (permalink / raw)
To: cygwin; +Cc: Joan M. Moss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 295 bytes --]
Sad to say, but it like your DLL is striped for import library information.
(assuming the backslash is a typo in the mail, it should be a pipe | to
grep)
What kind of DLL is this?
-Ãystein
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linking an existing DLL
2000-03-16 6:05 Joan M. Moss
@ 2000-03-17 1:12 ` Oliver Nittka
0 siblings, 0 replies; 3+ messages in thread
From: Oliver Nittka @ 2000-03-17 1:12 UTC (permalink / raw)
To: cygwin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
"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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linking an existing DLL
@ 2000-03-16 6:05 Joan M. Moss
2000-03-17 1:12 ` Oliver Nittka
0 siblings, 1 reply; 3+ messages in thread
From: Joan M. Moss @ 2000-03-16 6:05 UTC (permalink / raw)
To: cygwin; +Cc: jmm9001
Hi -
On my PC (Windows NT 4.0, Service Pack 5) I have a DLL which
resides in
\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?
I followed the instructions for "Linking Against DLLs" from the
"User
Guide", i.e.:
echo EXPORTS > UISERVER.DEF
nm UISERVER.DLL \ grep ' T _' | sed 's/.* T _//' >> UISERVER.DEF
When I do this I it seems to work fine, however, a .def file is created
with only one line:
bash-2.02$ cat UISERVER.DEF
EXPORTS
bash-2.02$
Any suggestions regarding how to proceed? How do I locate Mumit Kahn's
site? Could you give me the URL for it?
--
J. Maurine Moss
First consulting Group Management Services
333 East 38th Street
New York, New York 10016
Tel: (212) 297-3081
Fax: (212) 297-4231
E-mail: jmm9001@nyp.org
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-03-17 1:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-16 6:19 Linking an existing DLL Ãystein O Johansen
-- strict thread matches above, loose matches on Subject: below --
2000-03-16 6:05 Joan M. Moss
2000-03-17 1:12 ` Oliver Nittka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).