This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Inconsistent behaviour by Archive library and Shared library liked to application


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]