2010-06-28 08:47:26     libbfdsp linking problem

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2010-06-28 08:47:26     libbfdsp linking problem

David Brandt (DENMARK)

Message: 90680   






I'm trying to use the FFT implementations in the bfdsp library. However, when I try to link I get undefined references. For instance:


bfin-elf-gcc -o main -mcpu=bf561 -lm -lbfdsp main.o uart.o


main.o: In function `main':


/home/mowj/fft/main.c:14: undefined reference to `__twidfft_fr16'


collect2: ld returned 1 exit status


make: *** [main] Error 1



I'm programming bare metal using the toolchain installed using apt-get on ubuntu.


Any suggestions?




2010-06-28 12:45:45     Re: libbfdsp linking problem

Mike Frysinger (UNITED STATES)

Message: 90695   


your linking order is incorrect.  when static linking, the exact order of objects/libraries matters.