nobody wrote on Saturday, September 16, 2006:
I’m just trying to get the basic ATMega323 demo file to compile but I keep runing into this:
Compiling: serial/serial.c
avr-gcc -c -mmcu=atmega323 -I. -D GCC_MEGA_AVR -I. -I…/…/Source/include -I…/Common/include -g -Os -fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wa,-adhlns=serial/serial.lst -std=gnu99 serial/serial.c -o serial/serial.o
serial/serial.c:194: warning: return type defaults to `int’
serial/serial.c:194: warning: function declaration isn’t a prototype
serial/serial.c: In function `SIGNAL’:
serial/serial.c:194: warning: type of “__vector_13” defaults to “int”
serial/serial.c: At top level:
serial/serial.c:210: warning: return type defaults to `int’
serial/serial.c:210: warning: function declaration isn’t a prototype
serial/serial.c:210: error: redefinition of ‘SIGNAL’
serial/serial.c:194: error: previous definition of ‘SIGNAL’ was here
serial/serial.c: In function `SIGNAL’:
serial/serial.c:210: warning: type of “__vector_14” defaults to “int”
serial/serial.c: At top level:
serial/serial.c:210: warning: unused parameter ‘__vector_14’
make: *** [serial/serial.o] Error 1
my gcc version is 3.4.3 and I’m runing Ubuntu 6.06LTS.
I’m trying to get this to compile before I start converting for a ATmega128. Besides switching the the clock speed and the Heap size and the UARTs used, this should run out of the box right?
Thanks for your help!
–Jessew