FAAC静态库在链接时报错:frame.c:(.text+0x3ec): undefined reference to `__assert_fail'

网上看到有这样的描述:

On Sun Feb 17, 2002 at 10:49:59PM -0600, Alberto Alonso wrote:
> When trying to compile a program that uses the
> microwindows library I get the following error:

> nxproto.o(.text+0x13f): undefined reference to `__assert_fail'
> nxproto.o(.text+0x169): undefined reference to `__assert_fail'

> After doing some grepping I did see an assert function
> Could I use that one instead?
 
I think you must be mixing code compiled with glibc with code
compiled with uClibc, since glibc defines __assert_fail in
include/assert.h and #defines assert to call that, while uClibc
does not use or define __assert_fail at all...  Check that you
are not mixing libraries compiled with glibc with code compiled
with uClibc....
 
 -Erik

 

我的app是uclibc程序编译方法编译,但是我在编译faac库的时候使用的是glibc编译的,,,,,,才导致了这样的现象,

解决,重新编译faac库,使用ulibc方式编译(加上 -muclibc 选项):

 

./configure --prefix=/home/yuanda.yu/git/Ingenic_T20/app/3rdlibs_src_code/faac/faac_install_dir --host=mips-linux-gnu CFLAGS="-DWORDS_BIGENDIAN -muclibc"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值