delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/16/12:11:33

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3279
Path: news-dnh.mv.net!mv!news.sprintlink.net!psgrain!usenet.eel.ufl.edu!news.mathworks.com!news.kei.com!simtel!oleane!in2p3.fr!swidir.switch.ch!swsbe6.switch.ch!scsing.switch.ch!news.belwue.de!news.uni-ulm.de!rz.uni-karlsruhe.de!i50s20!vogelsan
From: vogelsan AT i50s20 DOT ira DOT uka DOT de (Holger Vogelsang)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Question about DJGPP C syntax
Date: 16 Nov 1995 13:54:05 GMT
Organization: IMA Karlsruhe
Lines: 24
Sender: vogelsan AT i50s20 (Holger Vogelsang)
References: <DI4q2E DOT Kr AT jade DOT mv DOT net>
Nntp-Posting-Host: i50s20.ira.uka.de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

>> 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.

Or much easier:

#define far

-----------------------------------------------------------------
Holger Vogelsang
Institut fuer Mikrorechner und Automation, Universitaet Karlsruhe 
Haid-und-Neu-Strasse 7,  D-76131 Karlsruhe
Tel.: +49+721 6083170, Fax : +49+721 661732
WWW: http://www-ima.ira.uka.de/mitarbeiter/vogelsan/

- Raw text -


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