网上看到有这样的描述:
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"