delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/10/12:02:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <5F052F2A01FBD11184F00008C7A4A8005D57E7@eukbant101.ericsson.se>
From: "Richard Hellicar (EML)" <Rick DOT Hellicar AT eml DOT ericsson DOT se>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: import libraries for 3rd-party DLLs
Date: Wed, 10 Mar 1999 16:38:43 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)

Hello,
                                     
                                                              
I'm trying to create an "import library" to allow me to use gcc with a
third-party DLL.
I tried the .lib files supplied with the DLL, but neither worked (one was
for MS, which
did compile, but complained about entry points when executed, the other for
Borland).
                                                              
The Cygwin User's Guide (Delorie, Humblet, Noer) suggests a method in
Chapter 4
("Linking against DLLs").  However, if I run nm on *any* dll, not just the
one I'm trying
to use, it tells me "No symbols in xyz.dll"

In February, Gary Vaughan posted another method of producing import
libraries;
you *can* produce a library in this way, but the linker chokes on undefined
references when you use it.

Can of the cygwin gods tell me:
1. Should I expect either the MS or Borland .lib files to be compatible ?
2. Is there a way of converting incompatible lib files ?
3. Why doesn't nm find symbols in *any* DLL (try: for i in
/winnt/system32/*.DLL; do nm $i; done)
4. exactly what *is* supposed to be in a .def file; should the @4,@8  stuff
be in
  there or not ?  Semi-colons ?

I'm running cygwin B20.1 and  gcc version egcs-2.91.57 19980901

Thanks in advance to you all


Rick Hellicar
-- 






--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019