I’m trying to build a sketch using FastLED with queezythegreat/arduino-cmake, and I’m seeing the following error:
CMakeFiles/Sketch.dir/Sketch_simple.cpp.obj: In function `ClocklessController<(unsigned char)10, 4, 10, 6, (EOrder)66, 0, false, 10>::clearLeds(int)':
/home/justin/p/alburrell/libraries/FastLED/platforms/avr/clockless_trinket.h:105: undefined reference to `__cxa_guard_acquire'
/home/justin/p/alburrell/libraries/FastLED/platforms/avr/clockless_trinket.h:108: undefined reference to `__cxa_guard_release'
Adding #define NEED_CXX_BITS to my sketch (as suggested in #46) has no effect for me.
Copying and pasting this section from FastLED.cpp fixed the problem - but I’d prefer to avoid that if I can.
I also tried adding #define NEED_CXX_BITS and using __cxxabiv1; to my sketch, but I still saw the error message above.
Am I doing something wrong here? I’m a total C++ novice, so it could be a super simple fix!
I’m building on Ubuntu for Arduino Uno.