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