Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!zardoz.cpd.com!tmiuv0!rick From: rick@tmiuv0.uucp Newsgroups: comp.unix.sysv386 Subject: Re: ANSI-C compatible cc in SysV?? Message-ID: <358@tmiuv0.uucp> Date: 12 Sep 90 11:25:35 GMT References: <9395@ubc-cs.UUCP> <1990Sep03.141000.15713@virtech.uucp> <5035@pegasus.ATT.COM> <2@tdw206.ed.ray.com> Organization: Technology Marketing Inc., Irvine, CA Lines: 27 In article <2@tdw206.ed.ray.com>, heiser@sud509.ed.ray.com (Bill Heiser - Unix Sys Admin) writes: >>< In article <9395@ubc-cs.UUCP> rlin@cs.ubc.ca (Robert Lin) writes: >>< Is the cc in Interactive System V 3.2 ANSI-C compatible? I tested cc on a >>< small program with function prototyping ANSI style, and cc promptly >>< choked. Looking through the cc man page reveals no special switch for ANSI >>< C compatibility. >>and other tools). > > I did the same thing with 'cc' on my Esix system. It choked too. > I tried it with gcc on the same system, and it worked. Easily understood. The cc that comes with SVR3 is _not_ an ANSI compiler. Never has been. Never will be. Now, the cc that comes with SVR4 _IS_ ANSI-compliant. SCO Unix comes with both the AT&T compiler (invoked by using 'rcc' instead of 'cc') _AND_ the Microsoft ANSI compiler (invoked by 'cc'), so you have both ways. If you have SVR3 and want ANSI, cheaply, GCC is the way to go. ---------------------------------------------------------------------------- [- O] Rick Stevens, Technology Marketing Incorporated ? EMail: uunet!zardoz!tmiuv0!rick -or- uunet!zardoz!xyclone!sysop V CIS: 75006,1355 (75006.1355@compuserve.com from Internet) (Opinions are mine. No one listens to me here anyway.) "Lead, follow, or get the h*ll out of the way!" ----------------------------------------------------------------------------