如何设置静态库搜索路径 假设静态库文件lib×××.a在/home/fiber/Desktop/lib下, 1、cd /home/fiber/Desktop下; 2、pwd >> /etc/ld.so.conf 3、ldconfig 如上操作之后问题便解决了。 Mr Wang Ever Work In Baidu mr.wang.self@gmail.com