Hall zusammen, hoffe, daß mir jemand weiterhelfen kann. Nach einem Update von Ubuntu 6.0x LTS auf Ubuntu 8.04 LTS läßt sich mein ATmega32-Projekt nicht mehr kompilieren. Ich verwende die Lib von Roland Riegel (Stand 08.06.2008) zum Zugriff auf eine SD-Karte. Beim Kompilieren gibt es jetzt die Meldung: Compiling C: sd_logging.c avr-gcc -c -mmcu=atmega32 -I. -gstabs -DF_CPU=14745600UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/sd_logging.lst -std=gnu99 -Wundef -MD -MP -MF .dep/sd_logging.o.d sd_logging.c -o obj/sd_logging.o In file included from fat16.h:14, from sd_logging.h:7, from sd_logging.c:1: fat16_config.h:59: error: expected ‘)’ before ‘*’ token In file included from sd_logging.h:10, from sd_logging.c:1: fat16_config.h stammt aus der Lib und wurde vorher problemlos kompiliert. Auf dem System sind installiert: gcc 4.2.3 avr-gcc 4.2.2 Leider weiß ich nicht mehr, welche Versionen es unter Ubuntu 6.0x LTS waren. Hat jemand eine Idee der einen Tipp, was das Problem ist? Gruß Christoph
Könnte da ein #include <stdint.h> in Datei fat16_config.h fehlen?
Genau das war es... super! Danke! Aber wieso hat das vor dem Update funktioniert? Gruß Christoph
>Genau das war es... super! Danke! Aber wieso hat das vor dem Update >funktioniert? Das liegt wohl an der Reihenfolge, in der der Compiler die einzelnen Quelltextdateien abarbeitet. Wenn er zuvor schon irgendwo auf ein #include <stdint.h> gestoßen ist, stört es ihn nicht, wenn es fehlt. Hat also nicht direkt etwas mit der Version des Compilers zu tun, ist mehr oder weniger Zufall. Hättest Du aber selbst finden können, er sagt doch fat16_config.h:59: error: expected ‘)’ before ‘*’ token also der Fehler ist in Zeile 59 in Datei fat16_config.h, dann ist es recht offensichtlich.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.