[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can we link an application with different version?

From: praks
Subject: Can we link an application with different version?
Date: Wed, 23 Jul 2008 09:28:26 -0700 (PDT)
User-agent: G2/1.0


We want to build an application which requires 3rd party libraries.
The 3rd party shared libraries strictly require "" and
we don't have source code of these libs. We are using gcc 3.4.x to
build main application . We have been able to build and link main
application with these libraries by using following gcc options:
#g++ -rdynamic -g -o app /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ -

#ldd app => /lib/tls/ (0x00c0e000) => /lib/ (0x004ac000) => /lib/ (0x0028d000) => /lib/tls/ (0x005b8000) => /usr/lib/ (0x00654000) => /usr/lib/ (0x0070d000) => /usr/lib/ (0x00111000) => /lib/tls/ (0x004b2000)
 ... => /lib/ (0x001dc000) => /lib/tls/ (0x0037f000)
        /lib/ (0x00361000)

It builds and runs fine on my dev ( rhel 4.0 )  machine. But it
doesn't work in the build that we gave to QA, we are getting a segv in
static initialization of objects. This seems to stem from the fact
that we have two versions of libstdc++ linked in the application viz.
"" (explicitly linked for 3rd party libs) and "libstdc+" (from the complier we are using).

Is it fine to use 2 different libstdc++ in same application?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]