Compiler conflict

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

I'm using the ELM File FAT File Ssytem (TinyFFS) and in my code I'm using both the TinyFFS function fprintf() and the snprintf() function from stdio.h. But it seems including both headers leads to conflicts.

What's the best way to solve this? Putting the function calls in different .c files each with one of the header files?

Building my dreams!

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

Rename all instances of fgets, fputc, fputs and fprintf in the TinyFFS source code. IMO, it was not particularly wise of the ELM authors to define these symbol names in the first place.