Stuck trying to get NeoPixelBus library working on Teensy 3.2

Status
Not open for further replies.

propa

Well-known member
Hi,

I'm a little stuck trying to compile the animation examples in this NeoPixelBus library: https://github.com/Makuna/NeoPixelBus

I get:
Code:
/var/folders/zy/9jlsvkzx6gv912t8bnr4tnzr0000gn/T/arduino_build_800752/libraries/NeoPixelBus_by_Makuna/internal/NeoPixelAnimator.cpp.o: In function `std::function<void (AnimationParam const&)>::operator()(AnimationParam const&) const':
/Applications/Arduino.app/Contents/Java/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/functional:2266: undefined reference to `std::__throw_bad_function_call()'
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 3.2 / 3.1.

I think it's because of a dependancy of the CPlusPlus library*, there's some conflict with the library and Teensy, and not sure what's happening. The code compiles fine with a (conventional) Arduino selected, not sure what's causing it, maybe a bad definition, if anyone could shed any light I'd be really grateful.

I've got the rest of the library working really nicely and plays fine with the Teensy 3.2, the fact the animation part doesn't compile is a slightly, confusion-inducing factor!

*I can't compile the examples given with the C++ library using the Teensy either:(https://github.com/maniacbug/StandardCplusplus/)

The library above is a port of uClibc, and this particular port is from 8years ago, this may have something to do with it? Just confused why it works on one and not on another, and whether it's possible to fix it!

Thanks in advance, you lot have been awesomely helpful in past problems, hopefully there's a solution to this problem!
 
Status
Not open for further replies.
Back
Top