Pages: [1]   Go Down
Author Topic: Arghh... must include #include in file that uses library with #include :( ???  (Read 359 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 111
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All

I have a library ServoMotor.h which uses <Servo.h> but when I add and call ServoMotor.h my program chokes unless I have a #include <Servo.h> as well??

Am I setting up my library incorrectly?

Is it not possible to include libraries inside other libraries without the caller having to know the implementation of the library? Man, I am starting to hate the Arduino programming environment smiley-sad

Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 613
Posts: 49310
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is it not possible to include libraries inside other libraries without the caller having to know the implementation of the library?
No, it isn't.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 111
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the clarification Paul.
Logged

Pages: [1]   Go Up
Jump to: