Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: Dan.Pop@cern.ch (Dan Pop)
Subject: Re: cc bugs?
Date: 1996/07/25	[thread overview]
Message-ID: <danpop.838299236@news.cern.ch> (raw)
In-Reply-To: 31F55628.63DE@iisc.com


In <31F55628.63DE@iisc.com> Charles M Richmond <cmr@iisc.com> writes:

>You are of course correct. The one is arguably an error in that
>the compiler follows K&R by default instead of the current 
>ansi standards.  The other is a bonehead oversight on my part.

Traditionally, cc is the K&R front end of the C compiler on a Unix system.
If you need to invoke the compiler in ANSI mode, just use the c89 front
end.

This is particularly handy when dealing with multiple platforms, because
it avoids you the need of remembering (or figuring out) the magic cc
incantation required to invoke the C compiler in ANSI mode on each
platform.  c89 is a standard POSIX.2 feature, hence it is supported by
many vendors, including HP, DEC and IBM.

Dan
--
Dan Pop
CERN, CN Division
Email: Dan.Pop@cern.ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland



  reply	other threads:[~1996-07-25  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-20  4:00 cc bugs? philips
1996-07-22  4:00 ` Joe Mario
     [not found]   ` <31F4A4BE.6201@iisc.com>
1996-07-23  4:00     ` Stephen Baynes
1996-07-23  4:00       ` Charles M Richmond
1996-07-25  4:00         ` Dan Pop [this message]
1996-07-22  4:00 ` Stephen Baynes
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox