This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

char* problems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]