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
|