Googool / pico_fft

A lightweight and efficient FFT (Fast Fourier Transform) library for the Raspberry Pi Pico, based on the KISS FFT library.
MIT License
6 stars 2 forks source link

linker problems with c++ compiler #1

Open hertz98 opened 3 months ago

hertz98 commented 3 months ago

Using c++ compiler I get undefined reference to fft_setup() from the linker when using the library as submodule, you should add the following to the fft.h header, like the headers of the kiss library

#ifdef __cplusplus
extern "C" {
#endif

// code

#ifdef __cplusplus
}
#endif
Googool commented 3 months ago

Thank you for pointing this out! I will update it when I get the time later this week.

Which C++ compiler (and version) are you using?

Regards Ask Marius

hertz98 commented 2 months ago

I'm using the compiler provided by the Pico SDK in Windows x64: arm-none-eabi-g++.exe (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009