Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!mailrus!ncar!ico!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Porting to a 3b2 Message-ID: <17441@haddock.ima.isc.com> Date: 17 Aug 90 00:10:56 GMT References: <28562@netnews.upenn.edu> Reply-To: karl@kelp.ima.isc.com (Karl Heuer) Distribution: usa Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 17 In article <28562@netnews.upenn.edu> kehoe@scotty.dccs.upenn.edu (Brendan Kehoe) writes: >[Tried to port a program, but the compiler doesn't support prototypes or >automatic aggregate initialization.] Is it K&R compatible at all?? Ah, how naive today's youth; the new standard is in place for but a year, and they believe there's never been anything else. You are describing a pre-ANSI compiler. Second edition K&R describes ANSI C; the implementation in question adheres to First edition K&R (plus the enhancements that were added to the language shortly after publication). Function prototypes and automatic aggregate initialization are features that are new to ANSI C. Either obtain an ANSI C compiler (gcc is a good choice), or rewrite your code to be compliant to Classic C. The former is probably easier. Karl W. Z. Heuer (karl@kelp.ima.isc.com or ima!kelp!karl), The Walking Lint