From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,9a2a420ec841e44c X-Google-Attributes: gidfee84,public From: Kevin Oberman Subject: Re: Dec C pecularity Date: 1999/07/13 Message-ID: #1/1 X-Deja-AN: 500550388 Sender: oberman@ptavv.es.net References: <37614C91.3FBFAB0A@zk3.dec.com> <87hfocxypx.fsf@romulus.bland.fido.de> <7k37t4$bq@web.nmti.com> <87vhcb42lh.fsf@romulus.bland.fido.de> <37789EF3.D7A52B7@iisc.com> <87673onc42.fsf@romulus.bland.fido.de> Organization: ** ESnet ** The Energy Sciences Network ** Newsgroups: comp.unix.osf.osf1 Tobias Ernst writes: > Please be careful about accusing others not having done basic RTFM. The > manpage of cc on our system says that "-std" is the default for cc, while > actually the given example of code works if I specify -std, but it doesn�t if > it don�t. Odd. What release of Tru64 are you running? I don't have a 4.0f system handy, but 4.0a-4.0e all have the following in their man pages: -std[n] Directs the compiler to produce warnings for language constructs that are not standard in the language. The default is -std0. Further, in at least later releases I find (in a friendly note right at the top of the man page): Note In a future release of DIGITAL UNIX, the default DEC C language-mode flag will be changed from -std0 (K&R programming style, pre-ANSI C standard) to -std (ANSI C standard - with some relaxations). The most notable difference in compiling with -std instead of -std0 will be an increased number of diagnostic messages. Compaq has announced that the "future release" will be 5.0. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest Orlando Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634