当前位置: 技术问答>linux和unix
arm-linux-gcc编译XML错误
来源: 互联网 发布时间:2016-10-25
本文导语: 写了个XML程序,用gcc编译的时候没有问题,可用arm-linux-gcc时出现很多错误,如下 /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible .//libxml2.a when searching for -lxml2 /usr/local...
写了个XML程序,用gcc编译的时候没有问题,可用arm-linux-gcc时出现很多错误,如下
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible .//libxml2.a when searching for -lxml2
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libxml2.so when searching for -lxml2
collect2: ld returned 1 exit status
请问大虾,是什么原因。。
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible .//libxml2.a when searching for -lxml2
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libxml2.so when searching for -lxml2
collect2: ld returned 1 exit status
请问大虾,是什么原因。。
|
libxml要交叉编下
|
1楼正解。
skipping incompatible .//libxml2.a when searching for -lxml2
skipping incompatible .//libxml2.a when searching for -lxml2