Include order issue #76
rvdbreemen
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Could you please avoid filing duplicate issues, and bombarding me with so many at the same time? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Well, interestingly enough I struggled with the order of the includes.
So I am using TimeLib.h next to AceTime.h. I do this to minimize code change... Historically I used ezTime and before that TimeLib. Anyway, there is lots of compile errors if I include AceTime later dan TimeLib.
So the order that worked for me is:
#include <AceTime.h>
#include <TimeLib.h>
There must be a namespace conflict or something, because if I do it the otherway around I won't even compile.
What could be the reason for that?
The reason why I included TimeLib.h again,is that AceTime does not support the normal now(), hour(), minute(), etc. API.
Would it be thinkable to support a "default Timezone" that you setup on the object, so that the "TimeLib" API would also work?
Beta Was this translation helpful? Give feedback.
All reactions