Date: Mon, 23 Feb 1998 17:17:49 +0200 (IST) From: Eli Zaretskii To: Pierre Bosman cc: djgpp AT delorie DOT com Subject: Re: const, far, non-ansi In-Reply-To: <34F17927.70EE9A5F@informix.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.