【linux编译】/usr/bin/ld: ...错误
编译出错:
/usr/bin/ld: skipping incompatible ./xerces-c-src2_1_0/lib/libxerces-c.so when searching for -lxerces-c
/usr/bin/ld: cannot find -lxerces-c
collect2: ld returned 1 exit status
make: *** [h2482] Error 1
找这个文件
file ./xerces-c-src2_1_0/lib/libxerces-c.so
./xerces-c-src2_1_0/lib/libxerces-c.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
然后
uname -a
Linux ubuntu 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
在能编译过的机器上输入同样的命令
发现
uname -a
Linux localhost.localdomain 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
我郁闷了。64位和32位系统。
我这个错误是不是由于系统原因引起的。是的话怎么决绝
求教