Go Down

Topic: Library from Library (Read 1 time) previous topic - next topic

MarvinMartian

I'm creating a small library from which I want to use the EEPROM library but I'm getting a compile error in my library on the include line
#include <EEPROM.h>

error: EEPROM.h: No such file or directory

I can use the EEPROM fine from my sketch with the same include.

Is this behaviour supported, or must all libraries be self contained?

Cheers

wayoda

#1
Mar 31, 2010, 04:17 pm Last Edit: Mar 31, 2010, 04:20 pm by wayoda Reason: 1
Hi,
this isn't supported.  
More information on this topic and a workaround is to be found here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1260904176/0

Its a long thread, you can skip to page 2 where the real problem is tackeled ....
Eberhard



MarvinMartian

Cheers.

Looking into the EEPROM library code, it's basically aliasing some core functions, so it was easier to use those directly  :)

Go Up