I am getting error in Pro* C pre-compilation when I have declared the variables as
unsigned int x = 0b00001;
unsigned int y = 0b00010;
unsigned int z = 0b00100;
When the pre-compilation happens in pro*c , error is
....................1
PCC-S-02201, Encountered the symbol "B00001" when expecting one of the following
:
; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "B00001" to continue.
GCC version is
gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)`enter code here`
When I try to run this code as a normal C code in a different file, it works just fine. The issue only occurs while running a pro*c code.
So, I want to understand what the exact problem is when a proc code is compiled and why no problem when C code compiles.