如果有人有信息,我需要你关于这个问题的帮助。
我已经speex1.2rc1为xscale-elf(ARM 架构)进行了配置,然后执行make了make install. 所以,我libspeex.a在 with 中也获得了/usr/local/lib编译libogg.a。但是当我将库链接到我的程序(通过添加LDFLAGS += -lspeex -lm)并尝试编译时,我收到此错误:
/usr/lib/gcc/xscale-elf/3.4.3/../../../../xscale-elf/bin/ld: cannot find -lspeex
collect2: ld returned 1 exit status
make: *** [exe0] Error 1
我将选项传递 ./configure为:
./configure --host=xscale-elf
链接器很可能看不到libspeex.a,我也在 LDFLAGS += /usr/local/lib/libspeex.a -lmMakefile 中尝试了该行,但出现了另一个错误(也在链接中):
/tmp/ccvi7Pns.o(.text+0x179c): In function `main':
: undefined reference to `BlinkC$speex_bits_init'
collect2: ld returned 1 exit status
make: *** [exe0] Error 1