My platform is RHEL 4.6 under intel xeon system. My compiler is gcc 4.2. All the applications are developed using C.
Let us assume I have a routine ( A ) in which I am making call which is contained in Library L. Now I have made a new library using linking statically library L with my routine A. Let us call this new library as N.
Now there are 3 different applications called X , Y and Z. All of the 3 applications need to link with the new library N.
I have tried to link ( statically ) these 3 applications with the library N. But at the time of linking why does the compiler once again give linking error if I don't include L. I have already included L at the time of making N. Still why does it expect L separately.