home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / sysv386 / 16264 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  2.1 KB

  1. Xref: sparky comp.unix.sysv386:16264 biz.sco.opendesktop:717 biz.sco.general:4054
  2. 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
  3. From: bill@Celestial.COM (Bill Campbell)
  4. Newsgroups: comp.unix.sysv386,biz.sco.opendesktop,biz.sco.general
  5. Subject: Re: Bug with ScoSession connecting to XTerm with >16 colors
  6. Message-ID: <1992Nov05.164746.25393@Celestial.COM>
  7. Date: 5 Nov 92 16:47:46 GMT
  8. Article-I.D.: Celestia.1992Nov05.164746.25393
  9. References: <1992Nov4.191635.4114@bnr.ca> <Bx863s.6oL@mudos.ann-arbor.mi.us>
  10. Organization: Celestial Software, Mercer Island, WA
  11. Lines: 30
  12.  
  13. In <Bx863s.6oL@mudos.ann-arbor.mi.us> mju@mudos.ann-arbor.mi.us (Marc Unangst) writes:
  14.  
  15. :In article <1992Nov4.191635.4114@bnr.ca> Jonathan P. Crone <cronejp@bnr.ca> writes:
  16. :>cpp: line 61, Error: Unterminated string
  17. :>! We're on a 256 color or more server
  18. :>1 error in preprocessor
  19.  
  20. :This is a problem that frequently crops up in programs, like xrdb,
  21. :that expect to be able to use /usr/lib/cpp as a general-purpose text
  22. :preprocessor.  You used to be able to do that with old K&R C
  23. :preprocessors, but the ANSI C committee ruled that the preprocessor
  24. :does not have to accept illegal C code.  SCO's preprocessor conforms
  25. :to the ANSI C standard, and so it rejects illegal C code.  The
  26. :apostrophe is what's getting you; the preprocessor sees the "'" and
  27. :thinks it's going to get a character constant, but then it doesn't see
  28. :a valid character constant string.
  29.  
  30. Another solution that I use is to install gcc on my client sites
  31. and use it for pre-processing with the -traditional option.  I
  32. have a shell script 'cpp' in the PATH prior to the system cpp
  33. which calls gcc with the appropriate flags.  I started doing this
  34. because I use cpp as a preprocessor for UNIFY RPT and SQL scripts
  35. and my clients didn't really need the full DevSys.
  36.  
  37. Bill
  38. -- 
  39. INTERNET:  bill@Celestial.COM   Bill Campbell; Celestial Software
  40. UUCP:   ...!thebes!camco!bill   6641 East Mercer Way
  41.              uunet!camco!bill   Mercer Island, WA 98040; (206) 947-5591
  42. SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
  43.