[ltp] Problem with creating dependent shared library

sensors linux-thinkpad@linux-thinkpad.org
Fri, 22 Oct 2004 10:53:10 +0000


Hi All

     How to create dependent sharable libraries...........
Like for example...
  I want to create 2 libraries.........
 1.  mylibone.so
 2.  mylibtwo.so

The library mylibtwo.so is dependent on mylibone.so

I tried to create but getting an error as ........

cc: -lmylibone: linker input file unused because linking not done

I complied the 2nd library as
 gcc -c -fPIC mylibtwo.c -D_REENTRANT -lmylibone 

Can any body help me out with it..............


Thanks in advance.........