I have no gcc 4.1.2 at hand. but I just had a try with gcc-4.1.0 and gcc-4.2.0 which compiled a simple testcase with no errors or warnings. additionally, I had a try with some other compiler than gcc to compile it. a warning issued. I think it's possibly too strict of gcc raising a error on sch case. any options that you added when compiling?
2008/9/15 Douglas Gemignani <[EMAIL PROTECTED]>: > Dear friends, > > I have serious issues when compiling using gcc 4.1.2, everytime i try > to pass a unsigned char* to a function that receives char*, i got > errors, it also happens when passing const char* to char* or unsigned > char* functions. > > This is really annoying and the code is a working one in other system, > i would like to foce the compilation, i already tryed to use the > following flags: > -fno-const-strings > -Wwrite-strings > -funsigned-char > > but none of them worked. > > Is there something that i can tell to gcc, other than making casts all > over the code? > Thanks > > []s > Douglas > -- Best wishes! Yours, Lijuan Hai _ _ (_)(_) (,,) =()= ((__)\ _|L\_______/