[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: shared library problem
Have you used -soname flag. I sets an internal field of library which is
preferred.
i.e. if you have a file myfile.so with internal field set to mylib, then -lmylib
will pick up myfile.so even if there is no file mylib.so.
This is a recommended method rather than relying on file name.
man ld for more details...
Shridhar
"Vani R." wrote:
> Hi sumit,
>
> That's fine. It works for me also. but what i want is using -L and -l options.
> I am giving the library path where the .so file is existing and -l option to
> specify the library name ( mylib.so ) . But when i use these options , i am
> getting error as "mylib.so - no such file or directory" . What should i do ??