An alle mit einem C-Compiler

  • Hallo Leute,


    ich habe im Internet ein Beispiel für einen elektronsichen Würfel gefunden. Eigentlich wollte ich das Programm selbst schreiben, aber aus Zeitgründen wurde das auf Eis gelegt. Jedenfalls liegt das Programm in C vor, wovon ich aber keine Ahnung habe. Habe mir jetzt kurzfristig AVR Studio geladen und installiert, wenn ich das Programm compilieren möchte, kommt immer das es Fehler gibt.
    Der Autor schreibt, das das Programm funktioniert.


    Lange rede kurzer Sinn:
    Könnte das Proramm bitte schnell mal jemand compilieren? Ich weiß das die Frage echt blöd ist , aber ich bekomme es einfach nicht hin und von C habe ich leider keinen Plan. Eine kurze Antwort mit einer HEX File im Anhang und ich würde euch mal wieder vergöttern. :love:


    Hier ist der Link.
    http://www.mikrocontroller.net/topic/179741#new
    Besten Dank schon mal im vorraus.

  • Man, so einfach kann man menschen helfen ;)






    Build started 17.6.2010 at 21:48:46
    avr-gcc -mmcu=attiny2313 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT test.o -MF dep/test.o.d -c ../test.c
    In file included from ../test.c:11:
    c:/winavr-20090313/lib/gcc/../../avr/include/util/delay.h:85:3: warning: #warning "F_CPU not defined for <util/delay.h>"
    ../test.c:24: warning: return type defaults to 'int'
    avr-gcc -mmcu=attiny2313 -Wl,-Map=test.map test.o -o test.elf
    avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature test.elf test.hex
    avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O ihex test.elf test.eep || exit 0
    avr-objdump -h -S test.elf > test.lss


    AVR Memory Usage
    ----------------
    Device: attiny2313


    Program: 1032 bytes (50.4% Full)
    (.text + .data + .bootloader)


    Data: 5 bytes (3.9% Full)
    (.data + .bss + .noinit)



    Build succeeded with 2 Warnings...





    EDIT:
    PS: das vergöttern lassen wir mal lieber