home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11529 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.5 KB  |  74 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!mcsun!dxcern!dscomsa.desy.de!dscomsa!r02kar
  3. From: r02kar@rec01.desy.de (Karsten Kuenne)
  4. Subject: Re: Another help request
  5. In-Reply-To: stoler@seas.gwu.edu's message of Mon, 27 Jul 1992 18:29:13 GMT
  6. Message-ID: <R02KAR.92Jul28203517@rec01.desy.de>
  7. Sender: news@dscomsf.desy.de (USENET News System)
  8. Nntp-Posting-Host: rec01.desy.de
  9. Organization: Deutsches Elektronen-Synchrotron, Hamburg, Germany.
  10. References: <1992Jul27.182913.6625@seas.gwu.edu>
  11. Date: Tue, 28 Jul 1992 20:35:17 GMT
  12. Lines: 60
  13.  
  14. >>>>> On Mon, 27 Jul 1992 18:29:13 GMT, stoler@seas.gwu.edu (Rich Stoler) said:
  15.     Rich> Originator: stoler@seas.gwu.edu
  16.  
  17.     Rich> I have been trying to make groff 1.05 on a crimson. I
  18.     Rich> keep getting the following error:
  19.  
  20.     Rich> g++ -c -I. -O errarg.c errarg.c: In method
  21.     Rich> `errarg::errarg (const char *)': errarg.c:26: assignment
  22.     Rich> between incompatible pointer types
  23.  
  24.     Rich> several of us have looked at it but cannot figure out
  25.     Rich> what's wrong.  Any suggestions would be appreciated.  --
  26.     Rich> Rich Stoler, Senior Systems Prgrammer,          
  27.     Rich> George Washington University SEAS Computing Facility,
  28.     Rich> 725 23rd St NW, Washington DC 20052     
  29.     Rich> stoler@seas.gwu.edu -or- uunet!gwusun!stoler
  30.  
  31. I had the same problem. A quick and dirty solution was:
  32.  
  33. Change the following definition in lib/errarg.h :
  34.  
  35. -------------------------------------
  36. class errarg {
  37.   enum { EMPTY, STRING, CHAR, INTEGER, DOUBLE } type;
  38.   union {
  39.     const char *s;                            <==========
  40.     int n;
  41.     char c;
  42.     double d;
  43.   };
  44. ------------------------------------
  45. into the following :
  46.  
  47. ------------------------------------
  48. class errarg {
  49.   enum { EMPTY, STRING, CHAR, INTEGER, DOUBLE } type;
  50.   union {
  51.     char *s;                                   <=========
  52.     int n;
  53.     char c;
  54.     double d;
  55.   };
  56. ------------------------------------
  57.  
  58. This worked for me, but don't ask me why (I know C but I never wrote a
  59. C++ program).
  60.  
  61. Another solution was to use SGI's C++-Compiler.  But this compiler was
  62. not able to compile gpic ! The cfront produced C-Code from one source
  63. file which screwed up the C-Compiler :-(. So I compiled gpic with g++
  64. and the rest of groff with SGI's CC. But if you chose this solution
  65. you have to compile the code in the lib directory twice !
  66.  
  67. Karsten Kuenne.
  68. --
  69. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  70. Karsten Kuenne, DESY (-R2-), Notkestr. 85, 2000 Hamburg 52, Germany
  71. phone: +49-40-8998-3315
  72. e-mail: <kuenne@desy.de>, <r02kar@rec01.desy.de>,
  73.         <r02kar@dhhdesy3.bitnet>
  74.