ldd not a dynamic executable

在开发环境编译运行很ok的程序,到了客户的生产环境一直有问题,编译找不到库,类似这个样子:

/usr/bin/ld: skipping incompatible ../lib/libasound.so when searching for -lasound
/usr/bin/ld: cannot find -lasound

可是路径下明明有库,猜测应该是系统不兼容

ldd libasound.so
not a dynamic executable

果然是系统不兼容。
看了一下系统:

getconf LONG_BIT
32

32位的,妹的,又踩了这个坑。

猜你喜欢

转载自blog.csdn.net/lixuande19871015/article/details/81119467
ldd