delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/05/10:27:00

Date: Sun, 5 Jan 1997 17:17:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Rusty L Brooks <rbrooks AT utdallas DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Memory management in DJGPP
In-Reply-To: <5ahrj3$crt$1@news.utdallas.edu>
Message-ID: <Pine.SUN.3.91.970105171619.22565G-100000@is>
MIME-Version: 1.0

On 3 Jan 1997, Rusty L Brooks wrote:

> I have a few questions about djgpp... since I am learning C++ from a
> different C++ book, there is some difficulty...
> 
> First of all, gcc doesn't seem to handle the keyword far, as in:
> char far *harf;
> 
> This was mentioned in the info libc.a help files...  How can I maintain a
> similar functionality?
> 
> Secondly, if I want to pass a memory value to a pointer, how do I go about
> doing this?  (Both for far pointers and near pointer)  I get a warning
> about casting harf (see above) to an int without a cast if I try something
> like:
> 
> char *harf = 0x0013 or something similar.

Please download the DJGPP FAQ list (v2/faq202b.zip) from the same place 
you get DJGPP and read Chapter 18 there.  It explains everything you are 
asking about, and more.

- Raw text -


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