avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Syntax : how to specifiy a binary constant ?


From: Vincent Trouilliez
Subject: Re: [avr-gcc-list] Syntax : how to specifiy a binary constant ?
Date: Fri, 23 Sep 2005 02:26:14 +0200

> GCC 3.4.3 must work for
> 
> foo = 0b11110000;
>  OR
> foo = 0B11110000;
> 
> Are you getting compilation errors?
> 
> Nayani


Hi Nayani,

Yes, I get a compiler error in both cases.

About foo = 0b1111000; or foo = 0B11110000; it says :

main.c:92:9: invalid suffix "b11110000" on integer constant

...and about foo = b11110000; it says:

main.c:92: error: `b11110000' undeclared (first use in this function)



Regards,


--
Vince





reply via email to

[Prev in Thread] Current Thread [Next in Thread]