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: Parthasaradhi Nayani
Subject: Re: [avr-gcc-list] Syntax : how to specifiy a binary constant ?
Date: Thu, 22 Sep 2005 18:32:09 -0700 (PDT)

Hello Vincent,

I have seen the other responses to this thread. One
can use binary values in AVR GCC 3.4.3. In fact I had
used the same in some of my projects and I am not able
to make a guess on why you are getting an error. Just
a guess, have you typed zeros correctly in the
original code? (by mistake o is not typed in place of
0???)

Nayani


--- Vincent Trouilliez > 
> 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)



                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




reply via email to

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