简体   繁体   中英

G++ cannot find library unless it is full path

After installing boost from EPEL 5 on 64-bit CentOS 5.8 I run insto strange problem. I cannot link in other way then providing full path. Ie this works:

g++ ... /usr/lib64/libboost_python.so.5

But this cannot find -lboost_python

g++ ... -L/usr/lib64/ -lboost_python

What could be wrong?

PS. LD_LIBRARY_PATH does not help. It do finds some libraries but even symlinking into /usr/lib does not help. I am building 64-version of program (checked by file *.o ).

尝试添加符号链接: ln -s /usr/lib64/liboost_python.so /usr/lib64/libboost_python.so.5 ,然后重试。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM