Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!ucbcad!ucbvax!jade!eris!mwm From: mwm@eris.UUCP Newsgroups: comp.sys.amiga Subject: Re: replacement for frags Message-ID: <3204@jade.BERKELEY.EDU> Date: Fri, 17-Apr-87 05:07:35 EST Article-I.D.: jade.3204 Posted: Fri Apr 17 05:07:35 1987 Date-Received: Sun, 19-Apr-87 01:18:30 EST References: <3148@jade.BERKELEY.EDU> <2362@cit-vax.Caltech.Edu> <671@unccvax.UUCP> Sender: usenet@jade.BERKELEY.EDU Reply-To: mwm@eris.BERKELEY.EDU (Mike (My watch has windows) Meyer) Organization: Missionaria Phonibalonica Lines: 52 In article <671@unccvax.UUCP> fwp@unccvax.UUCP (Rick Pasotto) writes: >Why do I get the following errors when I try to compile the frags >replacement program? What symbol is it referring to? I am a novice >at c, but this really doesn't make any sense to me. > >cc frags.c >Aztec C68K 3.4a 2-3-87 (C) 1982-1987 by Manx Software Systems, Inc. > register long first, second; ^^^^^ > ^ >frags.c:192: ERROR 90: symbol redeclared: Print_Count > register long in; > ^ >frags.c:247: ERROR 90: symbol redeclared: Long_To_ASCII >2 errors > >Any help would be greatly appreciated. > >Rick Pasotto Your problem is your compiler. There are two possible solutions: 1) Buy a compiler that understands function prototypes, and use it instead (1/2 :-). 2) Delete the two lines that look like bodyless function declarations: void Print_Count(long, long) ; and void Long_To_ASCII(long, char *, int) ; While you're at it, you'll need to add a line like so in about the same place: long Write(), Output() ; and cast the OUTPUT_SIZE argument of Write to a long. To Manx Users (and writers): Sorry about those prototypes, but they make the code more readable. As far as I'm concerned, readability takes precedence over portability. Hence, I use prototypes, void's and long names. You should make noises to have them added to the compiler!