Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!gymble!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang.c Subject: Re: Help Message-ID: <1420@umcp-cs.UUCP> Date: Wed, 28-Aug-85 11:16:49 EDT Article-I.D.: umcp-cs.1420 Posted: Wed Aug 28 11:16:49 1985 Date-Received: Thu, 29-Aug-85 08:45:53 EDT References: <248@proper.UUCP> <965@brl-tgr.ARPA> <184@ho95e.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 36 > > > When ever I attempt to compile the Fahrenheit-Celsius table > > > program (on pg 8 of _The C Programming Language_) I get this error: > > > "temp.c", line 8: warning: old-fashioned initialization: use = > The error message you got is normally caused by using constructs > that resemble some of the "old-fashioned" language constructs. Right so far... > For example: > foo=-40; > used to mean foo -= 40, instead of foo = (-40). This is true, but not directly related to the actual error given above. > I this case, I'd check to make sure "lower" has been declared, as > a scalar (int or double?), and that you don't have any more variable > declarations after it. The problem is one of two things. The Portable C Compiler has seen either or { when it gives the "warning: old-fashioned initialization: use =" error message. (The next message may well be "syntax error".) One of the rather neat things you can do is run "cc -E" on the source file, to see what's actually being compiled. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251) UUCP: seismo!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland