Skip to main content
teijo
Associate II
June 18, 2014
Question

problem when compiling fft_excample with gcc

  • June 18, 2014
  • 1 reply
  • 501 views
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?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 18, 2014
    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 VenmoUp vote any posts that you find helpful, it shows what's working..