invalid conversion from `UCHR* const' to `const char

Ian Lance Taylor iant@google.com
Tue Oct 31 01:50:00 GMT 2006


"Hembree, Dr. Louis" <louis.hembree@nrlmry.navy.mil> writes:

> string.cxx:577: error: invalid conversion from `UCHR* const' to `const
> char*'

This says that you are trying to pass a value of type "unsigned char*'
to a parameter of type "const char*".  The types "unsigned char*" and
"char*" are not assignment compatible.  You need to add a cast.

Ian



More information about the Gcc-help mailing list