Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!hplabs!hpda!hpdslab!hpiacla!mlight From: mlight@hpiacla.HP.COM (Mike Light ) Newsgroups: comp.sys.hp Subject: Re: spectrum or is it SPECTRUM??? Message-ID: <4650004@hpiacla.HP.COM> Date: 25 May 88 15:40:22 GMT References: <6430009@weycord.WEYCO.COM> Organization: Hewlett Packard Lines: 19 > The compiler complained every time I called a > spectrum a spectrum. > The project name for the s800 is "spectrum" and I like my > spectrums called spectrum(s). Cpp changes "spectrum" to "1" > and the compiler complains "unexpected 1". Don't think "spectrum" > is a key word in "C"?? I don't know why, but "spectrum" comes pre-defined as the constant 1 in /lib/cpp on the 800's. Fortunately it is easy to get rid of: When compiling: cc -Uspectrum etc... or in source code: #undef spectrum /* Zap that mama! */ Let us know how it works! -- Mike Light. ----------------------------------------------------------------------- Mike Light HP Ind. Applications Center - {world}!hpda!hpiacla!mlight -----------------------------------------------------------------------