Sender: crough45 AT amc DOT de Message-Id: <97May21.104845gmt+0100.16661@internet01.amc.de> Date: Wed, 21 May 1997 09:51:46 +0100 From: Chris Croughton Mime-Version: 1.0 To: djgpp AT delorie DOT com Cc: max AT alcyone DOT com Subject: Re: Newbie question (error that needs cc1plus.exe file) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Erik Max Francis wrote: > Jason M. Daniels wrote: > > > No; gcc is only absolutely, 100% ANSI when used with the '-ansi' switch. > > ('-pedantic' will complain about more things but I'm not totally sure if > > it enforces more ANSI compliance.) > > It does, in at least some cases. -pendatic will make gcc complain about > main prototypes not returning int, for instance. Not true, at least for gcc 2.7.2 (the latest we have here at work). Nor is that a requirement of the ANSI C specification. It will produce a warning (and change the type to 'int') for C++, but that does not yet have a specification which has been ratified by ANSI, so it's not meaningful to talk about "more ANSI compliance". Chris C