Article View: comp.sources.bugs
Article #806Re: Problems with Centipede
From: tsmith
Date: Wed, 08 Jul 1987 17:34
Date: Wed, 08 Jul 1987 17:34
30 lines
1282 bytes
1282 bytes
In article <1031@bucsb.bu.edu.UUCP>, eap@bucsb.bu.edu.UUCP (Eric Pearce) writes:
>
> Anybody else have this problem with Nathan Glasser's "Centipede" ?
>
>
> % make
> cc -O -c cent.c
> cc -O -c stuff.c
> cc -O -c input.c
> cc -O -c interrupts.c
> cc -O -c score.c
> cc -O -c move.c
> cc -O -c rand.c
> cc -O -c save.c
> "save.c", line 133: Cannot take the address of this object
> *** Error code 1
>
> Stop.
>
> Line 133 is: read(fd,&ch,1);
>
I changed the declaration:
register char ch;
to
char ch;
and the error message went away.
--
Thomas J. Smith @ MCC Software Technology
tsmith@mcc.com
sally!im4u!milano!tsmith
Technical Details
Message-ID:
<4868@milano.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!im4u!milano!tsmithReferences:
<1031@bucsb.bu.edu.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!im4u!milano!tsmith From: tsmith@milano.UUCP Newsgroups: comp.sources.bugs Subject: Re: Problems with Centipede Message-ID: <4868@milano.UUCP> Date: Wed, 8-Jul-87 13:34:46 EDT Article-I.D.: milano.4868 Posted: Wed Jul 8 13:34:46 1987 Date-Received: Sat, 11-Jul-87 04:13:00 EDT References: <1031@bucsb.bu.edu.UUCP> Sender: tsmith@milano.UUCP Organization: MCC, Austin, TX Lines: 30 Keywords: centipede Summary: re: Centipede