Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!decwrl!elroy.jpl.nasa.gov!hacgate!ashtate!dbase!awd From: awd@dbase.UUCP (Alastair Dallas) Newsgroups: comp.sys.mac.programmer Subject: Re: LightSpeed C bug Keywords: Lightspeed error message lsc C Message-ID: <184@dbase.UUCP> Date: 3 Aug 89 18:04:12 GMT References: <4807@tank.uchicago.edu> Organization: Ashton Tate Devlopment Center Glendale, Calif. Lines: 25 In article <4807@tank.uchicago.edu>, s170@tank.uchicago.edu (harmon g washington) writes: > In Lightspeed C v3.0 a program I wrote contains the standard C programming > language construct: > char a[] = "Hello, World"; > This is the definition of a constant string. All other C compilers I have > used this statement is legal; it is in K&R; It is legal in MPW C v3.0; ... > But in Lightspeed C I get the error "required erray bounds missing". > What is wrong? You're right, of course--this is valid C. K&R p.109 (s5.9) and p.199 (s8.6). Is it possible you actually typed: char *a[] = "Hello, World"; That would require braces. In any event: char *a = "Hello, World"; or Str255 a = "\pHello, World"; should work. I would check all four on THINK C, but I'm at work and its at home. Hope it helps. /alastair/