info-inventor-dev
[Top] [All Lists]

Re: char * vs. const char * in SoText[23].c++

To: prikryl@xxxxxxxx (Jan Prikryl)
Subject: Re: char * vs. const char * in SoText[23].c++
From: jlim@xxxxxxxxxxxxxxxxxxxx (Jonathan Lim)
Date: Wed, 23 May 2001 17:05:50 -0700 (PDT)
Cc: info-inventor-dev@xxxxxxxxxxx
In-reply-to: <20010523105736.A16970@dustpuppy> from "Jan Prikryl" at May 23, 2001 10:57:37 AM
Sender: owner-info-inventor-dev@xxxxxxxxxxx
We've gone through this numerous times before. The second argument will remain
as 'char **'. Both irix_dev.sw.headers (IRIX 6.5.x) and glibc-devel-2.2.2-10
(Red Hat 7.1) has it so.


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



On Wed May 23 01:57:37 2001, prikryl@xxxxxxxx wrote:
> 
> Hi,
> 
> when compiling current CVS version of Inventor with gcc prerelease
> version 3.0 20010327, I got
> 
> | SoText2.c++: In method `SbBool SoBitmapFontCache::convertToUCS 
> | (unsigned int, const SoMFString &)':
> | SoText2.c++:780: cannot convert `char **' to `const char **' for 
> | argument `2' to `iconv (void *, const char **, size_t *, char **, 
> | size_t *)'
> 
> and the same for SoText3.c++ .
> 
> Patches attached (it's actually just defining `input' to be `const char*').
> 
> -- jan

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