Date: Sun, 5 Jan 1997 17:17:24 +0200 (IST) From: Eli Zaretskii To: Rusty L Brooks cc: djgpp AT delorie DOT com Subject: Re: Memory management in DJGPP In-Reply-To: <5ahrj3$crt$1@news.utdallas.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.