Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从这里下载了 liblbfgs 并从其文档中编译了示例代码
g++ sample.cpp -o sample -llbfgs
然后我跑
./sample
但它说
./sample: error while loading shared libraries: liblbfgs-1.10.so: cannot open shared object file: No such file or directory
我必须添加任何额外的标志吗?谢谢!!
这里讨论了类似问题的解决方案。您可能必须这样做ldconfig,因为您最近安装了一个共享库。
ldconfig