0
我需要你对这个问题的帮助,如果任何人有信息。链接错误:未定义的引用静态libarary
我已经为xscale-elf
(ARM架构)配置了speex1.2rc1
,然后执行了make
和make install
。所以,我在/usr/local/lib
中获得了libspeex.a
,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 -lm
Makefile中却得到了另一个错误(也连接):
/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