2011-03-31 08:12:52     Library libbfdsp.a and mangling

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

2011-03-31 08:12:52     Library libbfdsp.a and mangling

Mike Allsworth (SOUTH AFRICA)

Message: 99474   

 

Hi

QuoteReplyEditDelete

 

 

2011-03-31 08:22:37     Re: Library libbfdsp.a and mangling

Mike Allsworth (SOUTH AFRICA)

Message: 99475   

 

Hi

 

Sorry for first incomplete post - brain leak!

 

BF537, bare metal, trying to use libbfdsp.a. Compiler says "undefined reference to _rfft_fr16"

 

A fragment of my makefile =  -L /opt/uClinux/bfin-elf/bfin-elf/lib -lbfdsp

 

If I look inside libbfdsp.a I see "rfft_fr16", with no leading underscore. Could this be the problem?

 

Compiler is bfin-elf-gcc-4.3.5

 

Any help welcome!

 

Mike

QuoteReplyEditDelete

 

 

2011-03-31 15:08:17     Re: Library libbfdsp.a and mangling

Mike Frysinger (UNITED STATES)

Message: 99482   

 

no, the file is fine.  i can link against this func just fine.

 

are you including filter.h ?  how exactly are you linking against the lib ?  when statically linking, all libs must come after your objects.

QuoteReplyEditDelete

 

 

2011-04-01 08:40:02     Re: Library libbfdsp.a and mangling

Mike Allsworth (SOUTH AFRICA)

Message: 99500   

 

Hi Mike, Thanks! I derived the prototypes from VDSP instead of filter.h  :-(

Attachments

    Outcomes