Go Down

Topic: Arghh... must include #include in file that uses library with #include :( ??? (Read 404 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.


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy