boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请教,关于g++ -l的问题
相关主题
what kind of reason might cause this problem?
新手求教一个问题 (转载)
error while loading shared libraries
一个奇怪的library linking问题(c++, boost.python, shared li (转载)
如何绕开/etc/ld.so.conf中的路径,先搜索自己指定的.so路径?
问一个link的问题
问问Boost library, 尤其是Boost Graph Library (BGL)
有人用cmake吗?
谁给科普一下Linux里lib search怎么运作的?
[合集] C 编程error求教!
相关话题的讨论汇总
话题: 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版参与讨论
相关主题
[合集] C 编程error求教!
use intel mkl with Xcode 3.1.1
编译通过 运行时出现 error while loading shared libraries 是哪的问题?
Linux loading dynamic library problem
g++ command line一问
bin run as root, 它会不会pick up /root/.bashrc里的setting ? (转载)
How to see the content of a library file
is it possible use VC 6.0 library file in .net
java library 的文件扩展名是什么?
问个关于linux下面netpbm的问题
相关话题的讨论汇总
话题: file话题: path话题: shared话题: library话题: error