由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请教,关于g++ -l的问题
相关主题
what kind of reason might cause this problem? 谁给科普一下Linux里lib search怎么运作的?
新手求教一个问题 (转载)[合集] C 编程error求教!
error while loading shared librariesuse intel mkl with Xcode 3.1.1
一个奇怪的library linking问题(c++, boost.python, shared li (转载)编译通过 运行时出现 error while loading shared libraries 是哪的问题?
如何绕开/etc/ld.so.conf中的路径,先搜索自己指定的.so路径?Linux loading dynamic library problem
问一个link的问题g++ command line一问
问问Boost library, 尤其是Boost Graph Library (BGL)bin run as root, 它会不会pick up /root/.bashrc里的setting ? (转载)
有人用cmake吗?How to see the content of a library file
相关话题的讨论汇总
话题: file话题: path话题: shared话题: library话题: error
进入Programming版参与讨论
1 (共1页)
P********e
发帖数: 2610
1
小弟初学linux prog, 大虾帮忙看一下:
g++ a.cpp b.cpp -lcad
我想连一个libcad.la的文件,编译没错误
运行./a.out
error message: ./a.out: error while loading shared libraries: libcad.so.1:
cannot open shared object file: No such file or directory
v**u
发帖数: 20
2
where is your libcad.la file? You need let Linux know how to load it, you
can use ldconfig command after add the libcad.la path to its config file or
you can put your libcad.la file in your current dynamic library path, for
example /usr/lib .
P********e
发帖数: 2610
3
it's on university's server, I don't have right to change any of those you
mentioned.
Any other solution?
thanks.

or

【在 v**u 的大作中提到】
: where is your libcad.la file? You need let Linux know how to load it, you
: can use ldconfig command after add the libcad.la path to its config file or
: you can put your libcad.la file in your current dynamic library path, for
: example /usr/lib .

p****f
发帖数: 251
4
Add the path of the library to LD_LIBRARY_PATH.

【在 P********e 的大作中提到】
: it's on university's server, I don't have right to change any of those you
: mentioned.
: Any other solution?
: thanks.
:
: or

c********x
发帖数: 84
5
copy it to your local project directory. a quick fix.
1 (共1页)
进入Programming版参与讨论
相关主题
How to see the content of a library file如何绕开/etc/ld.so.conf中的路径,先搜索自己指定的.so路径?
is it possible use VC 6.0 library file in .net问一个link的问题
java library 的文件扩展名是什么?问问Boost library, 尤其是Boost Graph Library (BGL)
问个关于linux下面netpbm的问题有人用cmake吗?
what kind of reason might cause this problem? 谁给科普一下Linux里lib search怎么运作的?
新手求教一个问题 (转载)[合集] C 编程error求教!
error while loading shared librariesuse intel mkl with Xcode 3.1.1
一个奇怪的library linking问题(c++, boost.python, shared li (转载)编译通过 运行时出现 error while loading shared libraries 是哪的问题?
相关话题的讨论汇总
话题: file话题: path话题: shared话题: library话题: error