On Fri, 20 Feb 2009 08:03:52 +0100 (MET)
[email protected] (Joerg Wunsch) wrote:

> Vincent Trouilliez <[email protected]> wrote:
> > lcd.c:96: error: »asm« undeclared (first use in this function)
> 
> That's because you are using a -std setting the prevents GCC from
> using its extensions by a name ("asm") that is in the application name
> space, like -std=c99.  Either use -std=gnu99, or (as you already did)
> use the implementation namespace counterpart __asm__.
> 
> -- 
> cheers, J"org

You are a magician Joerg.. how could you know ! ;-)
Yes indeed, 2 weeks ago I added the --std=c99 flag to my makefile, as
advised by the avr-libc manual, in order to get the ATOMIC_BLOCK()
macro to work !
Using gnu99 fixed the problem indeed, thanks ! :-)



_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to