cancel
Showing results for 
Search instead for 
Did you mean: 

problem when compiling fft_excample with gcc

teijo
Associate II
Posted on June 18, 2014 at 12:54

Hello,

i'v try to compile example fft code

u

sing stm

dsp libraries.

Got this error message:

/usr/gcc-arm-none-eabi-4_7-2013q1/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/armv7e-m/fpu/libm.a(lib_a-wf_sqrt.o): In function `sqrtf':

wf_sqrt.c:(.text.sqrtf+0x98): undefined reference to `__errno'

wf_sqrt.c:(.text.sqrtf+0xa2): undefined reference to `__errno'

collect2: error: ld returned 1 exit status

Any ideas

how to solve this?

1 REPLY 1
Posted on June 18, 2014 at 13:41

Hard to say, perhaps you need to #include error.h or math.h?

Or link against the math library, -lm
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..