arduino icon indicating copy to clipboard operation
arduino copied to clipboard

some arduino libraries cause errors

Open zdjurisic opened this issue 8 years ago • 2 comments

I'm just guessing that it is the cores issue... So, with that said:

Including certain libraries causes compiling errors. For example,

#include <XWire.h> #include <XRTClib.h> RTC_DS1307 RTC; void setup() {} void loop() {}

throws:

test_TWI_DS1307:3: error: expected ')' before '*' token

the XRTClib is a copy of the RTClib, in which ony the reference to Wire was changed to XWire. Same thing with a few other libraries.

zdjurisic avatar Apr 03 '17 06:04 zdjurisic

I should probably mention that the same code, just including Wire and RTClib, compiles fine for, say, Mega2560, or Nano or ProMini on 328 chip

zdjurisic avatar Apr 04 '17 05:04 zdjurisic

added https://github.com/XMegaForArduino/libraries/issues/6

(this issue left for reference; please post additional comments over in 'libraries')

bombasticbob avatar Jul 30 '17 20:07 bombasticbob