Article View: comp.sources.bugs
Article #796Re: Problems with Centipede
From: Thomas Paul Brisco
Date: Mon, 06 Jul 1987 14:57
Date: Mon, 06 Jul 1987 14:57
29 lines
1600 bytes
1600 bytes
] Anybody else have this problem with Nathan Glasser's "Centipede" ?
]
]"save.c", line 133: Cannot take the address of this object
]*** Error code 1
]
]Stop.
]
]Line 133 is: read(fd,&ch,1);
]
](the only changes I made were to paths in 'sys_dep.c', as per instructions)
](doing this on Encore Multimax runnning 4.2 BSD )
]
The problem is that "ch" is defined as a "register char" --
remove the "register" part and it will compile. My compiler
complained, but did not barf, on this. It is really not a wise idea
to take the address of a register (they typically live at address 1 or
thereabouts). I got two of these messages overall, so you may run into
another.
Tp.
--
----------------------------------------------------------
- ARPA: Brisco@rutgers -
- UUCP: (ihnp4!ut-sally, allegra!packard) !caip!brisco -
----------------------------------------------------------
Technical Details
Message-ID:
<4287@caip.rutgers.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!rutgers!caip.rutgers.edu!briscoReferences:
<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!columbia!rutgers!caip.rutgers.edu!brisco From: brisco@caip.rutgers.edu (Thomas Paul Brisco) Newsgroups: comp.sources.bugs Subject: Re: Problems with Centipede Message-ID: <4287@caip.rutgers.edu> Date: Mon, 6-Jul-87 10:57:39 EDT Article-I.D.: caip.4287 Posted: Mon Jul 6 10:57:39 1987 Date-Received: Tue, 7-Jul-87 03:21:18 EDT References: <1031@bucsb.bu.edu.UUCP> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 29 Keywords: centipede