Mail Archives: djgpp/1996/04/03/01:18:29
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 -