delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/18/16:48:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <003d01c021b1$b5a21440$0300a8c0@sumt1.nj.home.com>
Reply-To: "Rajkumar Seth" <raj AT sahib DOT com>
From: "Rajkumar Seth" <raj AT sahib DOT com>
To: "DJ Delorie" <dj AT delorie DOT com>
Cc: <cygwin AT sourceware DOT cygnus DOT com>
References: <27832437 DOT 969144793742 DOT JavaMail DOT imail AT digger DOT excite DOT com> <200009182000 DOT QAA21861 AT envy DOT delorie DOT com>
Subject: Re: how to make a .lib from msfl70d.dll
Date: Mon, 18 Sep 2000 16:47:49 -0400
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Did not work.  If I compile with the dll, I just get Undefined references.
I did figure out how to build the .lib (duhh) using the dlltool.  They do
send a .def file so that one may make ones own import file.  I did
dlltool -d Def/Msfl.def -D Dll/msfl70d.dll -l Lib/gcc/msfl70d.lib -v
output is attached
SO I got a .lib file.  I was able to compile fine, but when I ran the
command, I got  a popup.
"A required .DLL file, DLL/MSFL70D.DLL, was not found"
SO I recreated the .lib using
dlltool -d Def/Msfl.def -D c:/windows/msfl70d.dll -l Lib/gcc/msfl70d.lib -v
got exactly the same output, and successful compile.  But at run-time, the
pop-up said
"the foo.exe file is linked to missing export
MSFL70D.DLL:MSFL1_CloseDirectory AT 4. "
  BTW. CloseDirectory happens to be the first export in the def file, also
attached.
just so any path problems were obviated, I tried various iterations of the
command.  The bottom line is that @ run time, if the dll was found, it gave
the missing export error, and if the dll was not found it gave the not found
error.

They shipped a VisualC++ .lib with the product, and I am able to compile and
run with that, but I just dont trust MS products.  I have used gcc (and even
djgpp - thanks DJ) for years, and would rather have the right .lib file.

would appreciate any ideas.


Rajkumar Seth


----- Original Message -----
From: "DJ Delorie" <dj AT delorie DOT com>
To: <rajseth AT excite DOT com>
Cc: <cygwin AT sourceware DOT cygnus DOT com>
Sent: Monday, September 18, 2000 4:00 PM
Subject: Re: how to make a .lib from a .dll


>
> > I just got the Metastock developer kit which comes as a dll - namely the
> > msfl70.dll.  I need to compile programs, and I need a .lib so that the
> > compile phase can happen.  How do I create such an animal?  If I dont, I
> > just get ld errors saying that the references are undefined.
>
> Try the obvious - list the DLL itself on the link line and see if the
> linker just knows how to deal with it.
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>


--
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