[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: shared library problem
On Thu, 8 Feb 2001, Vani R. wrote:
> 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 ??
a) gcc <path>/mylib.so files.c
Note: no -l used here
b) change the library name to libmy.so
gcc -L <path> -lmy files.c
No space between -l and my
#!!! If anything can go wrong, _FIX_ it. (To hell with MURPHY)
Ajay kumar Dwivedi