Go Down

Topic: Arghh... must include #include in file that uses library with #include :( ??? (Read 544 times) previous topic - next topic

AgeingHippy

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 :(


PaulS

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.
The art of getting good answers lies in asking good questions.


Go Up