C99 mode incompatible with eeprom.h ?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I decided to switch to C99 mode and noticed that when I do eeprom.h code fails with all sorts of warnings.

Is the code for most of the header files incompatible with C99?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No, C99 should be fine. Make sure you are using GNU99 standards mode, as there are a few header items (such as PSTR) that takes advantage of GNU extensions.

Post your errors/warnings here and I'll see if I can give you solutions.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks dean :)

Changing from -std=c99 to -std=gnu99

seems to have fixed me up :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Btw., that's completely fixed in the current version.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.