From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,d8fe0a66b911f78d X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,d8fe0a66b911f78d X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,d8fe0a66b911f78d X-Google-Attributes: gidf678f,public From: Dan.Pop@cern.ch (Dan Pop) Subject: Re: cc bugs? Date: 1996/07/25 Message-ID: #1/1 X-Deja-AN: 170078203 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: <31F3C67A.237C@zk3.dec.com> <31F4A4BE.6201@iisc.com> <31F55628.63DE@iisc.com> organization: CERN European Lab for Particle Physics newsgroups: comp.unix.programmer,comp.unix.osf.osf1,comp.unix.osf.misc In <31F55628.63DE@iisc.com> Charles M Richmond 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