Subject: porting problem
From: Hubert Figuière (hfiguiere@teaser.fr)
Date: Thu Jan 18 2001 - 16:06:02 CST
Hello,
I'm trying to resynchronise the Mac port to the current CVS.
I'm having a problem:
I get this error:
Error : function call 'iconv(void *, char **, unsigned long *, char
**, unsigned long *)' does not match
'iconv(void *, const char **, unsigned long *, char **, unsigned long *)'
ut_mbtowc.cpp line 259 len = iconv(cd,const_cast<ICONV_CONST char **>(&inptr),&inlen,&outptr,&outlen);
If I preprocess the file,
size_t len = iconv(cd,const_cast<ICONV_CONST char **>(&inptr),&inlen,&outptr,&outlen);
becomes
size_t len = iconv(cd,const_cast< char **>(&inptr),&inlen,&outptr,&outlen);
(ICONV_CAST is #defined as nothing)
Whatever I use libiconv-1.3 or the iconv.h that I found in wv.
Removing the const_cast<ICONV_CONST char **> solves the problem. But
what would be the side effect ?
Any help apreciated. Thanks
Hub
This archive was generated by hypermail 2b25 : Thu Jan 18 2001 - 16:04:02 CST