G. Branden Robinson wrote:
> (Also, it's surprise to me that Autoconf thinks a sun4u system is not a
> "64-bit host".)
> 
> checking for 64-bit host... no

It tests whether the code generated by the compiler is 32-bit or 64-bit.
(Because if the compiler generates 32-bit instructions, it's irrelevant
whether the CPU _can_ also execute 64-bit instructions, in the kernel or
elsewhere.)

>   CXX      src/preproc/preconv/preconv-preconv.o
> src/preproc/preconv/preconv.cpp: In function ‘void 
> conversion_iconv(std::FILE*, const string&, char*)’:
> src/preproc/preconv/preconv.cpp:705:45: error: invalid static_cast from type 
> ‘char**’ to type ‘const char**’
>       static_cast<ICONV_CONST char **>(&inptr),
>                                              ^
> src/preproc/preconv/preconv.cpp:740:47: error: invalid static_cast from type 
> ‘char**’ to type ‘const char**’
>         static_cast<ICONV_CONST char **>(&inptr),
>                                                ^

That should be a const_cast, not a static_cast, no? Or a reinterpret_cast
in the worst case.

Bruno




Reply via email to