Has anybody got the new V3 FastLED library building in AtmelStudio?

Has anybody got the new V3 FastLED library building in AtmelStudio? I’ve tried but I get this error:

h:\my documents\atmel studio\6.2\LED Hat\LED Hat\Debug/…/…/…/…/…/Arduino/libraries/FastLED/FastLED.h(175,1): error: undefined reference to __cxa_guard_acquire' h:\my documents\atmel studio\6.2\LED Hat\LED Hat\Debug/../../../../../Arduino/libraries/FastLED/FastLED.h(175,1): error: undefined reference to__cxa_guard_release’
collect2.exe(0,0): error: ld returned 1 exit status

I’m using the Due (Atmega328p) with an Arduino bootloader, which is now on the supported hardware list. I can build normal Arduino programs in Atmel Studio, as well as include other 3rd party libraries (so I think my setup is alright…). FastLED works when I use the Arduino IDE though (builds and runs), so there must be something being added to the source files behind the scenes. If making the FastLED library work with AS is too much work, would statically linking it into my AS project work?

If you can add pre processor defines at the project level - define NEED_CXX_BITS - I’ve provided stub versions for those internal c++ functions that some build environments inexplicably don’t link in.

Hi Daniel, could you please add a bit more detail? (I think) I tried what you suggested, but I still has the same build problem

I don’t use atmel studio - so I’m not sure where the option would be for it, offhand.

Thanks - I think that might have solved it. I’ve added NEED_CXX_BITS as a Defined symbol (-D) in the compiler setup. For some reason it wasn’t working before, so I must have done something else wrong, since then I created a new project and that seems to have fixed it.