-
Notifications
You must be signed in to change notification settings - Fork 65
Library needs to include Arduino.h to compile OK #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, |
The problem comes as the libraries are compiled separate from the sketch. -> do not have Arduino.h included. To reproduce : Edit :
|
I've reproduced and found the root cause. - #include <Arduino.h>
+ #include "stm32_def" |
Fixes stm32duino#32 Signed-off-by: Frederic Pillon <[email protected]>
Fixes stm32duino#32 Signed-off-by: Frederic Pillon <[email protected]>
I applied your proposed update as a local patch and can confirm it fixes the issue. Do you want me to close the issue or keep it open until the PR is applied ? |
Thanks for the feedback. Issue will be closed by the PR. |
Fixes #32 Signed-off-by: Frederic Pillon <[email protected]>
Hi,
I have a library that adds the option to use functional callbacks to the FreeRTOS timers.
That uses no Arduino functionality at all so I did not
include "Arduino.h"
That causes compile time errors : error: template with C linkage
It compiles OK with :
The text was updated successfully, but these errors were encountered: