Gast
#2366856
Hallo zusammen, ich habe ein MAC OS 10.7.1 und möchte meine AVR´s damit programmieren und eigentlich sollte das ganz einfach sein, eigentlich :(! Ich habe von der Uni Wien ein Howto gefunden wie man das alles installieren sollte, das an sich hat auch geklappt, aber ich kann nicht compailieren. Ich habe auch die toolchain für Mac installiert und dort das Einführungbeispiel erstellt, hat prima geklappt und genau dieses Beispiel habe ich in Eclipse auch getestet - erfolglos. Beispiel: #include <avr/io.h> #include <util/delay.h> int main(void) { DDRD = 1 << 4; /* make the LED pin an output */ for(;;){ char i; for(i = 0; i < 10; i++){ _delay_ms(30); /* max is 262.14 ms / F_CPU in MHz */ } PORTD ^= 1 << 4; /* toggle the LED */ } return 0; /* never reached */ } Ich bekomme 4 Fehler: Description Resource Path Location Type make: *** [AVR.elf] Error 1 AVR C/C++ Problem Description Resource Path Location Type Symbol 'DDRD' could not be resolved main.c /AVR/main line 14 Semantic Error Description Resource Path Location Type Symbol 'PORTD' could not be resolved main.c /AVR/main line 20 Semantic Error Description Resource Path Location Type undefined reference to `main' AVR line 193 C/C++ Problem Woran liegt das, ich habe die neuste c/C++ Version Eclipse 64 Bit mit AVR Plugin Freu mich wenn jemand Rat weiß.