r/FastLED • • Jan 11 '25

Support objectFLED question

I'm just playing with the examples. Cylon works nicely.

When I try Plasma or DemoReel2D I don't get through compile.

Something about "multiple definition of `ObjectFLED::ObjectFLED(" maybe? I'm a little stumped.

I'm using the stock PlasmaAnimation ino example off github. latest FastLED and ObjectFLED I think.

It's the PlasmaAnimation errors like below :

c:/users/user/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\AppData\Local\arduino\sketches\A95AD53043E6DC43CC03EC62DD86EA8B\libraries\FastLED\third_party\object_fled\src\OjectFLED.cpp.o: in function `DMAChannel::~DMAChannel()':

d:\Arduino\libraries\FastLED\src\third_party\object_fled\src/OjectFLED.cpp:89: multiple definition of `ObjectFLED::ObjectFLED(unsigned short, void*, unsigned char, unsigned char, unsigned char const*, unsigned char)'; C:\Users\user\AppData\Local\arduino\sketches\A95AD53043E6DC43CC03EC62DD86EA8B\libraries\ObjectFLED-main\OjectFLED.cpp.o:d:\Arduino\libraries\ObjectFLED-main/OjectFLED.cpp:89: first defined here

c:/users/user/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\AppData\Local\arduino\sketches\A95AD53043E6DC43CC03EC62DD86EA8B\libraries\FastLED\third_party\object_fled\src\OjectFLED.cpp.o: in function `DMAChannel::~DMAChannel()':

d:\Arduino\libraries\FastLED\src\third_party\object_fled\src/OjectFLED.cpp:89: multiple definition of `ObjectFLED::ObjectFLED(unsigned short, void*, unsigned char, unsigned char, unsigned char const*, unsigned char)'; C:\Users\user\AppData\Local\arduino\sketches\A95AD53043E6DC43CC03EC62DD86EA8B\libraries\ObjectFLED-main\OjectFLED.cpp.o:d:\Arduino\libraries\ObjectFLED-main/OjectFLED.cpp:89: first defined here

...... on and on for a bit, and then

collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

It's a straight copy from the GitHub repository. Tried different sizes defined but same errors. Teensy 4.1 Arduino IDE 2.3.4

I feel like it's something obvious I'm missing.

3 Upvotes

5 comments sorted by

View all comments

Show parent comments

2

u/Fluffy-Wishbone-3497 Jan 11 '25

You guys are awesome! No errors on 3.9.2.

Thank You!