www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/16/04:22:58

From: Ron Grunwald <RGRUNWAL AT wasp DOT cs DOT cowan DOT edu DOT au>
Organization: Edith Cowan University
To: djgpp AT sun DOT soe DOT clarkson DOT edu, Teng Yong Jeffrey <93602081 AT neptune DOT np DOT ac DOT sg>
Date: Thu, 16 Nov 1995 12:06:13 GMT+800
Subject: Re: Question about DJGPP C syntax
Reply-To: r DOT grunwald AT cowan DOT edu DOT au

Teng Yong Jeffrey wrote:

> I recently downloaded a public-domain text windowing package
> in the form of c-winsrc.txt from garbo.uwasa.fi
> 
> I unzipped the files inside and try compiling them, but
> somehow I couldn't get DJGPP to recognize the "far"
> declarations - what's the problem?

Far pointers are used in the real mode segmented memory models. DJGPP 
uses 32-bit linear memory model, and therefore the concept of a far 
pointer makes no sense. 
To compile your code you have to remove all the 'far' attributes from 
your pointer declarations.


Regards, Ron.



 ********************************************************************
 | Author.............. Ron Grunwald                                | 
 | Internet............ r DOT grunwald AT cowan DOT edu DOT au                     |
 | Phone............... (09)273 8027 or (09)273 8468                |
 |------------------------------------------------------------------|
 | Department.......... Computer Operations and Systems Management  |
 | Division/Faculty.... Information Technology                      | 
 | Institute........... Edith Cowan University, Churchlands         | 
 | Location............ Perth, Western Australia                    |
 ********************************************************************
 "I don't have any solution but I certainly admire the problem!"


- Raw text -


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