[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: shared library problem

Hi Vani
    just do  gcc <libfile>  <source file>  -o <outputfile> and it will work
Its not necessary for you to have the name of the libfile to start with


"Vani R." wrote:

> Hi All,
> I have a small problem linking to shared library.
> I have created a shared library using " gcc -shared -o mylib.so test.c"
> when i try to link it using the -L option specifying the directory where
> this library is along with -l option specifying the library name , it
> says , No such file or directory.Can anybody please help me in using
> shared libraries created by us.
> Thanking in advance,
> --vani--
> --
> Many of the life's failures are people who didn't realize how close they
> were to success
> when they gave up
>       --Thomus Edison
> ---------------------------------------------
> LIP is all for free speech.  But it was created
> for a purpose.  Violations of the rules of
> this list will result in stern action.