delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/23/10:18:21

Date: Mon, 23 Feb 1998 17:17:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Pierre Bosman <pierre AT informix DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: const, far, non-ansi
In-Reply-To: <34F17927.70EE9A5F@informix.com>
Message-ID: <Pine.SUN.3.91.980223171254.26013B@is>
MIME-Version: 1.0

On Mon, 23 Feb 1998, Pierre Bosman wrote:

> I initially used Turbo C/C++ compiler which compiled the prog fine. I
> then tried to use gcc -o p.exe prog.c
> This initially complained about a definition about :
>     char far *gp; (It did not like far, I did not have ANSI turned on)

`far' is not just non-ANSI, it is not supported by GCC.  You need to 
define it away:

	gcc -Dfar= -o p.exe prog.c

This is all explained in the DJGPP FAQ list, section 17.7, btw.

- Raw text -


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