XMegaForArduino / arduino

required (and optional) source files for the Arduino development environment, specifically the hardware/arduino sub-directory, to support xmega processors
19 stars 17 forks source link

some arduino libraries cause errors #38

Open zdjurisic opened 7 years ago

zdjurisic commented 7 years ago

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 commented 7 years ago

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

bombasticbob commented 7 years ago

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

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