I'm trying to get Eclipse to work for AVR but with no luck.
I'm using Eclipse 3.3 Europa with CDT version 4.0 and the avr-eclipse plugin version 20070807 from this site http://sourceforge.net/projects/avr-eclipse/
I extracted the two plugin folders into the eclipse plugin folder and copied the bat file into the winavr/bin directory.
I made a new project by File -> New C Project -> AVR Cross Target Project. I added a source file, but when i try to build it, the console says:
make -k all
Building target: as.elf
avr-gcc -Wl,-Map,.map -mmcu=atmega16 -o"as.elf" ./as.obj
c:/winavr-20070525/bin/../lib/gcc/avr/4.1.2/../../../../avr/lib/avr5/crtm16.o: In function `__vectors':
../../../../../avr-libc-1.4.6/crt1/gcrt1.S:51: undefined reference to `main'
make: *** [as.elf] Error 1
make: Target `all' not remade because of errors.
In the problems pane, this appears:
../../../../../avr-libc-1.4.6/crt1/gcrt1.S undefined reference to `main'
When i try to 'Run as' the .c file, as 'Run Local C/C++ Application', I get the error 'Launch failed no binaries'
What should i do?
Any help is appreciated.