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

error: extended character ² is not valid in an identifier

Hello,

The ARM GNU toolchain does not like at all "extended characters" (like '²' or '℃') that are completely OK with other GNU toolcahins (for ARM or other architectures).

The problem lies at the C preprocessor 'cpp'...

How can that be?!

Thank you.

Parents
  • Well, when testing on Ubuntu 22 with a custom built gcc version 13.1.0, I got the same error.

    It seems that between version 11, where ² is accepted, and version 13 where these characters are rejected, something mischievous has happened...

Reply
  • Well, when testing on Ubuntu 22 with a custom built gcc version 13.1.0, I got the same error.

    It seems that between version 11, where ² is accepted, and version 13 where these characters are rejected, something mischievous has happened...

Children
No data