www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/21/04:53:15

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 <crough45 AT amc DOT de>
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)

Erik Max Francis <max AT alcyone DOT com> 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

- Raw text -


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