delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/08/00:49:22

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Watcom libs in DJGPP?
Date: Mon, 08 Sep 1997 00:07:17 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 37
Message-ID: <341341B5.24E6@cs.com>
References: <5ujquo$1uk$1 AT infa DOT central DOT susx DOT ac DOT uk>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp108.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Rob Kramer wrote:
> 
> Can anyone tell me if it is possible to use Watcom 32 bit libraries with
> DJGPP? I've never used Watcom; no idea what its output format is.
> 
> I think I'm risking some flames here, but I couldn't find anything appropriate
> in the FAQ!

Longer answer:  FAQ chapter 17.5:  "I want to use .obj or .lib code with
DJGPP"

In fact, the entirety of chapter 17 discusses converting code to DJGPP;
it makes for good reading.

Since you mention 32-bit libraries, there may be a small chance that you
can convert them.  First, these libraries _must_ be written as flat
model protected mode code, or they are completely unusable.  If they
are, you can use one of several object code converters available on the
net to convert them to DJGPP's COFF format.  Second, if they involve
things like direct hardware access (video memory, interrupts, etc.),
they probably won't work even if you do convert them.

If you are trying to convert Borland Graphics Interface (BGI) code,
there already exists a tool which can make your BGI code compatible with
DJGPP's GRX graphics library.  Get 'v2tk/bccgrx20.zip' from SimTel.  A
better option would be to rewrite your code to work with a different
library, such as Allegro (v2tk/alleg22.zip).

hth

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Sex should be friendly.  Otherwise  |
|       aka Fighteer I       | stick to mechanical toys; it's more  |
|   mailto:fighteer AT cs DOT com   | sanitary."                           |
| http://www.cs.com/fighteer |                - Lazarus Long        |
---------------------------------------------------------------------

- Raw text -


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