- Sat Feb 12, 2011 2:39 pm
#120102
I am doing my first arduino project using the tutorial here:
http://www.sparkfun.com/tutorials/160
Have moved the Fat libraries to /usr/share/arduino/libraries/FAT/
When trying to compile the SD_WAV_Playback in the arduino IDE I get the following errors:
Using Arduino IDE 0018 (the one available in the ubuntu repositories)
http://www.sparkfun.com/tutorials/160
Have moved the Fat libraries to /usr/share/arduino/libraries/FAT/
When trying to compile the SD_WAV_Playback in the arduino IDE I get the following errors:
Code: Select all
Is there a way to enable c99 mode for gcc from within the arduino IDE? Are there any fixes available for this? /usr/share/arduino/libraries/FAT/fat.c: In function ‘fat_append_clusters’:
/usr/share/arduino/libraries/FAT/fat.c:508: error: ‘for’ loop initial declaration used outside C99 mode
/usr/share/arduino/libraries/FAT/fat.c: In function ‘fat_interpret_dir_entry’:
/usr/share/arduino/libraries/FAT/fat.c:1550: error: ‘for’ loop initial declaration used outside C99 mode
/usr/share/arduino/libraries/FAT/fat.c: In function ‘fat_write_dir_entry’:
/usr/share/arduino/libraries/FAT/fat.c:1847: error: ‘for’ loop initial declaration used outside C99 mode
/usr/share/arduino/libraries/FAT/fat.c:1851: error: ‘for’ loop initial declaration used outside C99 mode
/usr/share/arduino/libraries/FAT/fat.c: In function ‘fat_get_fs_free_16_callback’:
/usr/share/arduino/libraries/FAT/fat.c:2288: error: ‘for’ loop initial declaration used outside C99 mode
Using Arduino IDE 0018 (the one available in the ubuntu repositories)