Pages: [1]   Go Down
Author Topic: #include one library into another ?  (Read 1150 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm fairly new to the Arduino development platform. I'm trying to write a high-level network library (that supports a specific XML protocol) for Arduino. Since I don't want to re-implement the whole Ethernet stack, I thought it would make sense to re-use the one that already comes with Arduino. My idea is, to pass a reference to an Ethernet object in the constructor of my own class. I could then internally instantiate Client and Server objects.

My questions now are: (1) is that viable / sensible solution and (2) how would I do this technically? Right now, I'm failing simply because I can't include "Ethernet.h" from within my library code:

Code:
/Users/oweidner/Sketchbook/arduino/libraries/NeuroAutonomics/NAEmitter.h:19:22: error:
Ethernet.h: No such file or directory

Any ideas or suggestions are highly appreciated!

Cheers,
O.
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 209
Posts: 13027
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Have a look at this...

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1260640627/5#5

...and this...

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1261937379/9#9

I hope your project goes well!
« Last Edit: October 07, 2010, 02:15:36 pm by bcook » Logged

Pages: [1]   Go Up
Jump to: