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

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

[avr-gcc-list] basic compiler issues for ATMEGA128


From: Jim Davis
Subject: [avr-gcc-list] basic compiler issues for ATMEGA128
Date: Mon, 7 Feb 2005 12:50:16 -0800

Anybody help a newcomer to this tool?

I get the errors listed here when trying to compile source that works fine
with the imagecraft compiler
I specified the atmega128 cpu but there are keywords the compiler is
complaining about.  Im using the
boilerplate makefile that came with winavr...


#pragma used+
sfrb PINF=0;
sfrb PINE=1;
...
#pragma used-




Compiling: rfnordicE/main.c
avr-gcc -c -mmcu=atmega128 -I. -gstabs   -Os -funsigned-char -funsigned-bitf
ields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=rfno
rdicE/main.lst -Iinc -std=gnu89 -Wp,-M,-MP,-MT,main.o,-MF,.dep/main.o.d
rfnordicE/main.c -o rfnordicE/main.o
In file included from rfnordicE/main.c:12:
inc/mega128.h:9: warning: ignoring #pragma used
inc/mega128.h:10: error: parse error before "PINF"
inc/mega128.h:10: warning: type defaults to `int' in declaration of `PINF'


reply via email to

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