www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/04:13:17

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Libraries: Conversion of MSVCC *.lib to DJGPP *.a
Date: Wed, 12 Feb 1997 21:07:49 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 44
Message-ID: <3302A1A5.75B6@cs.com>
References: <3301F735 DOT 45AB AT po DOT uni-stuttgart DOT de>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp103.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Martin Bernreuther wrote:
> 
> Is there a possibility to convert a library compiled for MSVCPP (*.lib)
> to the DJGPP (*.a) format?

It's possble, but extremely tricky.  Please obtain the DJGPP FAQ
(v2/faq210b.zip from SimTel mirrors) and read chapter 17.5 there.  In
fact, the entirety of chapter 17 makes good reading for those trying to
convert 16-bit code to DJGPP.

> Most of them support MS,Borland,Watcom and GNU compilers for OS/2&UNIX.
> Makefiles for these platforms are available and it's no problem to compile
> the library. But usually there are no makefiles for DJGPP/RSXNTDJ.
> 
> Is there a possibiliy to generate the libraries with the MS,... compiler and
> use this library with djgpp?

Not likely.  See above.

> Is there an easy way to modify the makefiles to build a native djgpp library?
> What is important here?

It is always possible to modify makefiles.  However the real problem is
that, if those libraries are not designed with 32-bit flat model
architectures in mind, they almost certainly won't compile even if you
modify the makefiles, and even if you do get them to compile, they
probably won't work without substantial modifications to the code.  The
FAQ goes into this in great detail.

It's interesting that you mention Unix in the list of supported
compilers for some of the libraries; if this is in fact the case then it
may not be so difficult to port the libraries to DJGPP.  If they support
GCC, then the only code you'll need to modify is anything that tries to
directly interface with hardware, interrupts, etc.  Chapter 18 of the
FAQ has a great deal of information on such things.

Hope this helps!

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| Plan:  To find ANYONE willing to |   http://www.cs.com/fighteer   |
| play Descent 2 on DWANGO!        | Tagline: <this space for rent> |
---------------------------------------------------------------------

- Raw text -


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