2009-04-14 17:50:38     dsp library compiler error

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

2009-04-14 17:50:38     dsp library compiler error

William Oliver (UNITED STATES)

Message: 72652   

 

I'm trying to use the lbfdsp library and I think I'm having some problems with the linker.  I'm getting an undefined reference error when I try and make a call to anything of type fract16 or the fft functions.

 

 

 

bfin-uclinux-gcc -Wl,-lbfdsp,-lm,-elf2flt fft_test.c -o fft_test

 

/tmp/ccqQU4se.o: In function `_sin2pi_fr16':

fft_test.c:(.text+0x16): undefined reference to `_sin_fra16'

fft_test.c:(.text+0x30): undefined reference to `__sin_fr16'

fft_test.c:(.text+0x40): undefined reference to `__sin_fr16'

/tmp/ccqQU4se.o: In function `_main':

fft_test.c:(.text+0xc2): undefined reference to `__twidfftrad2_fr16'

fft_test.c:(.text+0x10c): undefined reference to `_float_to_fract16'

fft_test.c:(.text+0x118): undefined reference to `_sin2pi'

fft_test.c:(.text+0x166): undefined reference to `__rfftN_scaling_fr16'

 

 

 

fft_test.c

QuoteReplyEditDelete

 

 

2009-04-14 18:38:38     Re: dsp library compiler error

Mike Frysinger (UNITED STATES)

Message: 72653   

 

linking order when working with static applications is significant.  you cant just list the libraries and source objs/files in any random order.

QuoteReplyEditDelete

 

 

2009-04-15 10:00:59     Re: dsp library compiler error

William Oliver (UNITED STATES)

Message: 72693   

 

I am aware of this, the order fo the libraries is what i'm concerned with.  I really would appreciate some input on the order of these or if I'm not calling the right ones.

QuoteReplyEditDelete

 

 

2009-04-20 20:22:02     Re: dsp library compiler error

Mike Frysinger (UNITED STATES)

Message: 72913   

 

if you already know you have to specify the correct order, then what's the question ?

Attachments

Outcomes