www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/03/01:18:29

Date: Wed, 3 Apr 1996 07:27:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: James Kolowich <jamesk AT worldnet DOT att DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: Question on DJGPP
In-Reply-To: <3161CB18.399B@worldnet.att.net>
Message-Id: <Pine.SUN.3.91.960403072056.16244G-100000@is>
Mime-Version: 1.0

On Tue, 2 Apr 1996, James Kolowich wrote:

> (or force) the compiler to compile 16-bit code? I've got some libraries 
> that I'd love to use with DJGPP, but I'm unable to do so, because there 
> are all sorts of FARs, NEARs, HUGEs, and other relics from 16bit 
> compilers. Also, how do you link .LIB files into DJGPP programs?

The way to do it is to read the DJGPP FAQ list (available as
v2/faq200b.zip from the same place you get DJGPP) sections 17.4 and 17.5,
and then to realize that you can't do it, unless you convert the sources
of those libraries to work in protected mode.  FAR, NEAR and HUGE could be
just defined away, but you'd have to do some real work converting the
parts that call real-mode BIOS and DOS services (aka ``software
interrupts'').  Chapters 17 and 18 of the FAQ should tell you enough 
about how to convert.

If you don't have the sources, you probably can't use those libraries.  
Sorry.

- Raw text -


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