Xref: utzoo comp.sys.amiga:76100 comp.sys.amiga.tech:17627 Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!zardoz.cpd.com!tmiuv0!rick From: rick@tmiuv0.uucp Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: "chip" in SAS C Message-ID: <1340@tmiuv0.uucp> Date: 7 Jan 91 16:19:30 GMT References: <1991Jan4.031246.20044@cs.uoregon.edu> Organization: Technology Marketing Inc., Irvine, CA Lines: 41 In article <1991Jan4.031246.20044@cs.uoregon.edu>, rlittle@comix.cs.uoregon.edu (Robert A. Little) writes: > Q: Why does the following not work? > > .... > USHORT chip Image={0xF700,0xF700}; > .... > > The SAS C5.10 compiler produces "Error 25: modifiable lvalue required" > > If I remove the "chip" designation, the error does not occur...If I use > far/near/const etc. the error likewise does not occur... Why? Why should > chip cause the error... (BTW: this line was copied from the AmigaDOS > RK 1.3 manual) First of all, you've got two values inside the {} goodies. That means an array, so it would have to be Image[2]={0xF700,0xF700};. Also, I believe that the "chip" designator is "__chip" (two underscores). At least it is under 5.05 (which I'm still running). Taking all that into account, try: USHORT __chip Image[2]={0xF700,0xF700}; and see if that does the trick. > > Thanks... > > rob > > ---------------------- > rlittle@cs.uoregon.edu -- ---------------------------------------------------------------------------- [- O] Rick Stevens ? EMail: uunet!zardoz!tmiuv0!rick -or- uunet!zardoz!xyclone!sysop V CIS: 75006,1355 (75006.1355@compuserve.com from Internet) "I'm tellin' ya, Valiant! Da whole ting stinks like yesterday's diapers!" - Baby Herman in "Who Framed Roger Rabbit" ----------------------------------------------------------------------------