info-inventor
[Top] [All Lists]

Re: Updates

To: j.jansson@xxxxxxxxxxxxx (Johan Jansson)
Subject: Re: Updates
From: jlim@xxxxxxxxxxxxxxxxxxxx (Jonathan Lim)
Date: Tue, 7 Nov 2000 11:08:33 -0800 (PST)
Cc: info-inventor@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.21.0011060650150.20395-100000@marx.> from "Johan Jansson" at Nov 06, 2000 07:09:59 AM
Sender: owner-inventor@xxxxxxxxxxx
On Sun Nov  5 22:09:59 2000, j.jansson@xxxxxxxxxxxxx wrote:
> 
> Very nice. I got the source from CVS (I don't think the source
> distribution in the FTP is updated?) and tried compiling it again. There

Oops. I missed that ... will create an updated tar file soon.

> were only two errors this time:
> 
> SoText2.c++:780: passing `const char **' as argument 2 of `iconv(void *,
> char **, size_t *, char **, size_t *)' discards qualifiers
> SoText2.c++: In method `GLubyte *
> SoBitmapFontCache::createUniFontList(const char *, float)':
> make[5]: *** [SoText2.o] Error 1
> 
> SoText3.c++:2269: passing `const char **' as argument 2 of `iconv(void *,
> char **, size_t *, char **, size_t *)' discards qualifiers
> make[5]: *** [SoText3.o] Error 1

The messages above don't seem to be complete. For example, the call to iconv()
is not in SoBitmapFontCache::createUniFontList() as the error seems to suggest.

> and they can be fixed by removing "const" from the cast. I have to say I'm
> a bit confused by these kinds of errors, do different compilers (and
> different versions of gcc) really treat const errors so
> differently? Anyway, I suppose these are pretty minor issues.

According to iconv.h from glibc-devel-2.1.3-15, the second argument to iconv()
is 'const char**'.


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

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