首页 > 代码库 > 解决configure: error: Could not link against !

解决configure: error: Could not link against !

问题描述:在./configure时出现error: Could not link against ! 

解决方法:来自 http://stackoverflow.com/questions/9132335/configure-error-could-not-link-against-boost-system
对于64位机:./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu
对于32位机:./configure --with-boost-libdir=/usr/lib/i386-linux-gnu(测试可用)


另一说法:来自https://baoz.net/%E8%A7%A3%E5%86%B3configure-error-could-not-link-against-%E9%97%AE%E9%A2%98boost%E7%9B%B8%E5%85%B3/

在64位里编译boost相关程序的时候,会遇到configure: error: Could not link against  !错误。

解决方法是用–with-boost-libdir=/usr/lib64 指定库文件位置即可解决。


2014-10-6

解决configure: error: Could not link against !