home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11723 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!mimsy!lhc!adm!news
  2. From: gml4410@ggr.co.uk (Lack Mr G M)
  3. Newsgroups: comp.sys.sgi
  4. Subject: groff 1.05
  5. Message-ID: <31606@adm.brl.mil>
  6. Date: 31 Jul 92 09:59:21 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 27
  9.  
  10.  
  11.      Rich Stoler <stoler@seas.gwu.edu> commented
  12.  
  13. > I have been trying to make groff 1.05 on a crimson. I keep getting the
  14. > following error:
  15. > g++ -c -I. -O errarg.c
  16. > errarg.c: In method `errarg::errarg (const char *)':
  17. > errarg.c:26: assignment between incompatible pointer types
  18.  
  19.  
  20.      I  can't comment on what is *wrong* but I can say what I did to get
  21. groff to build with gcc 2.2.2 .... 
  22.  
  23. /* GML Can't see how this could ever be allowed?
  24. errarg::errarg(const char *p) : s(p == 0 ? "(null)" : p), type(STRING)
  25. */
  26.  
  27. errarg::errarg(const char *p) : s(p == 0 ? &"(null)" : p), type(STRING)
  28.  
  29.  
  30.      In  case  you  can't  see  it I had to stick an "&" in front of the
  31. "(null)" character string!  Then it complains about incompatible pointer
  32. types, but keeps going. 
  33.  
  34.      Also,  I  couldn't compile the files in the tbl directory using the
  35. -O option: it gave a SEGV error.  Removing this option let it go Ok. 
  36.