Date: Wed, 3 Apr 1996 07:27:23 +0200 (IST) From: Eli Zaretskii To: James Kolowich Cc: djgpp AT delorie DOT com Subject: Re: Question on DJGPP In-Reply-To: <3161CB18.399B@worldnet.att.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.