This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compile char as an unsigned char

Hello,

Can anyone tell me how to instruct Keil to compile char's as unsigned char's by default?

I know that there are some help topics on this issue, but they seem to be giving a precompiler directive to tell the compiler to always compile char's as signed char's....

Thanks!
Eric

Parents
  • I'm sorry, I am importing code from a project developed on another platform and for some reason I was thinking that "Uchar" was defined in Keil's libraries, but it isn't.

    Anyways, here is how I have Uchar defined:

    typedef unsigned char Uchar;

    There is no #pragma SCH in my code anywhere that I can tell. I have searched "Find in Files" for both 'SCH' and '#pragma SCH,' nothing came up.

    (So, I am still confused why I am getting the previously mentioned errors?)

    Thanks,
    Eric

Reply
  • I'm sorry, I am importing code from a project developed on another platform and for some reason I was thinking that "Uchar" was defined in Keil's libraries, but it isn't.

    Anyways, here is how I have Uchar defined:

    typedef unsigned char Uchar;

    There is no #pragma SCH in my code anywhere that I can tell. I have searched "Find in Files" for both 'SCH' and '#pragma SCH,' nothing came up.

    (So, I am still confused why I am getting the previously mentioned errors?)

    Thanks,
    Eric

Children