home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.sysv386:16264 biz.sco.opendesktop:717 biz.sco.general:4054
- Path: sparky!uunet!looking!xenitec!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!news.u.washington.edu!uw-beaver!uw-coco!nwnexus!Celestial.COM!bill
- From: bill@Celestial.COM (Bill Campbell)
- Newsgroups: comp.unix.sysv386,biz.sco.opendesktop,biz.sco.general
- Subject: Re: Bug with ScoSession connecting to XTerm with >16 colors
- Message-ID: <1992Nov05.164746.25393@Celestial.COM>
- Date: 5 Nov 92 16:47:46 GMT
- Article-I.D.: Celestia.1992Nov05.164746.25393
- References: <1992Nov4.191635.4114@bnr.ca> <Bx863s.6oL@mudos.ann-arbor.mi.us>
- Organization: Celestial Software, Mercer Island, WA
- Lines: 30
-
- In <Bx863s.6oL@mudos.ann-arbor.mi.us> mju@mudos.ann-arbor.mi.us (Marc Unangst) writes:
-
- :In article <1992Nov4.191635.4114@bnr.ca> Jonathan P. Crone <cronejp@bnr.ca> writes:
- :>cpp: line 61, Error: Unterminated string
- :>! We're on a 256 color or more server
- :>1 error in preprocessor
-
- :This is a problem that frequently crops up in programs, like xrdb,
- :that expect to be able to use /usr/lib/cpp as a general-purpose text
- :preprocessor. You used to be able to do that with old K&R C
- :preprocessors, but the ANSI C committee ruled that the preprocessor
- :does not have to accept illegal C code. SCO's preprocessor conforms
- :to the ANSI C standard, and so it rejects illegal C code. The
- :apostrophe is what's getting you; the preprocessor sees the "'" and
- :thinks it's going to get a character constant, but then it doesn't see
- :a valid character constant string.
-
- Another solution that I use is to install gcc on my client sites
- and use it for pre-processing with the -traditional option. I
- have a shell script 'cpp' in the PATH prior to the system cpp
- which calls gcc with the appropriate flags. I started doing this
- because I use cpp as a preprocessor for UNIFY RPT and SQL scripts
- and my clients didn't really need the full DevSys.
-
- Bill
- --
- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software
- UUCP: ...!thebes!camco!bill 6641 East Mercer Way
- uunet!camco!bill Mercer Island, WA 98040; (206) 947-5591
- SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
-