Pages: [1]   Go Down
Author Topic: Library from Library  (Read 929 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 106
Where's the Kaboom?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


« Last Edit: March 31, 2010, 09:20:46 am by wayoda » Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 106
Where's the Kaboom?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cheers.

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

Pages: [1]   Go Up
Jump to: