This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Inconsistent behaviour by Archive library and Shared library liked to application
- From: "vijay anantharamu kowshik" <vijay_yelwal at rediffmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: 16 Apr 2003 05:52:42 -0000
- Subject: Inconsistent behaviour by Archive library and Shared library liked to application
- Reply-to: "vijay anantharamu kowshik" <vijay_yelwal at rediffmail dot com>
Hello,
Let me brief out my problem
I am using gcc 2.96 for my application and I have 3 shared
library
1) libsharedOne.so
2) libsharedTwo.so
3) libsharedThree.so
And an arhive library
libRchive.a
The libsharedOne.so uses libRchive.a
libsharedTwo uses libsharedOne.so and libRchive.a
and libsharedThree.so uses libsharedOne.so, libsharedTwo.so and
libRchive.a
Now if I link all the shared objects like
g++ -o MyApplication -lsharedOne -Rchive -lsharedTwo
-lsharedThree
It is working fine More over the compiler insits to libsharedOne
before libRchive.a while linking
If i use
g++ -o MyApplication -lsharedTwo -lsharedThree -lsharedOne
-Rchive
The Methods in the libRchive are not called at the runtime. I
could not find the solun for this prob yet, Pls guide me in this
regard.
Please let me know for more details.
Thanking and expecting some response
Vijay.