Hi Hub,

In ut_types.h, do some preprocessor magic to #define ICONV_CONST to const 
#ifdef MAC or whatever. Make sure that ut_types.h is #included by 
ut_mbtowc.[cpp|h]

Dom

>From: Hubert Figui�re <[EMAIL PROTECTED]>
>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>Subject: porting problem
>Date: Thu, 18 Jan 2001 23:06:02 +0100
>
>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
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


Reply via email to