home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!mcsun!dxcern!dscomsa.desy.de!dscomsa!r02kar
- From: r02kar@rec01.desy.de (Karsten Kuenne)
- Subject: Re: Another help request
- In-Reply-To: stoler@seas.gwu.edu's message of Mon, 27 Jul 1992 18:29:13 GMT
- Message-ID: <R02KAR.92Jul28203517@rec01.desy.de>
- Sender: news@dscomsf.desy.de (USENET News System)
- Nntp-Posting-Host: rec01.desy.de
- Organization: Deutsches Elektronen-Synchrotron, Hamburg, Germany.
- References: <1992Jul27.182913.6625@seas.gwu.edu>
- Date: Tue, 28 Jul 1992 20:35:17 GMT
- Lines: 60
-
- >>>>> On Mon, 27 Jul 1992 18:29:13 GMT, stoler@seas.gwu.edu (Rich Stoler) said:
- Rich> Originator: stoler@seas.gwu.edu
-
- Rich> I have been trying to make groff 1.05 on a crimson. I
- Rich> keep getting the following error:
-
- Rich> g++ -c -I. -O errarg.c errarg.c: In method
- Rich> `errarg::errarg (const char *)': errarg.c:26: assignment
- Rich> between incompatible pointer types
-
- Rich> several of us have looked at it but cannot figure out
- Rich> what's wrong. Any suggestions would be appreciated. --
- Rich> Rich Stoler, Senior Systems Prgrammer,
- Rich> George Washington University SEAS Computing Facility,
- Rich> 725 23rd St NW, Washington DC 20052
- Rich> stoler@seas.gwu.edu -or- uunet!gwusun!stoler
-
- I had the same problem. A quick and dirty solution was:
-
- Change the following definition in lib/errarg.h :
-
- -------------------------------------
- class errarg {
- enum { EMPTY, STRING, CHAR, INTEGER, DOUBLE } type;
- union {
- const char *s; <==========
- int n;
- char c;
- double d;
- };
- ------------------------------------
- into the following :
-
- ------------------------------------
- class errarg {
- enum { EMPTY, STRING, CHAR, INTEGER, DOUBLE } type;
- union {
- char *s; <=========
- int n;
- char c;
- double d;
- };
- ------------------------------------
-
- This worked for me, but don't ask me why (I know C but I never wrote a
- C++ program).
-
- Another solution was to use SGI's C++-Compiler. But this compiler was
- not able to compile gpic ! The cfront produced C-Code from one source
- file which screwed up the C-Compiler :-(. So I compiled gpic with g++
- and the rest of groff with SGI's CC. But if you chose this solution
- you have to compile the code in the lib directory twice !
-
- Karsten Kuenne.
- --
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Karsten Kuenne, DESY (-R2-), Notkestr. 85, 2000 Hamburg 52, Germany
- phone: +49-40-8998-3315
- e-mail: <kuenne@desy.de>, <r02kar@rec01.desy.de>,
- <r02kar@dhhdesy3.bitnet>
-