info-inventor
[Top] [All Lists]

Re: compile error in SoText2.c

To: michael.allerhand@xxxxxxxx
Subject: Re: compile error in SoText2.c
From: jlim@xxxxxxxxxxxxxxxxxxxx (Jonathan Lim)
Date: Thu, 9 Nov 2000 12:06:07 -0800 (PST)
Cc: info-inventor@xxxxxxxxxxx, cht@xxxxxxxxxxx
In-reply-to: <3A0A6CFA.30E80F3A@ed.ac.uk> from "mike allerhand" at Nov 09, 2000 09:23:06 AM
Sender: owner-inventor@xxxxxxxxxxx
On Thu Nov  9 01:23:06 2000, michael.allerhand@xxxxxxxx wrote:
> 
> Compiling inventor-2.1.5-6 under RH7.0 with
> gcc 2.96-54 stopped at SoText.c after a few warnings
> and an Error 1:
> cannot convert 'const char **' to 'char **' for argument 2
> to iconv(...).

In the interest of getting SoText[23].c++ to compile on IRIX and Linux (most
recent distributions anyway, from what I've seen), I'm going to remove the cast
to 'const char**' that I had put in place in revision 1.2 of SoText2.c++ and
revision 1.3 of SoText3.c++.

>From my tests, without the cast, egcs-2.91.66 will emit a warning and gcc 2.96
on Red Hat 6.2 will return an error. However, it appears that gcc 2.96-* on Red
Hat 7.0 will proceed without error.


              Jonathan Lim  _  Silicon Graphics  _  Mountain View
              GPS Graphics     Computer Systems        CA, USA

<Prev in Thread] Current Thread [Next in Thread>