Linking with different compilers

bill.volz@chevrontexaco.com (Bill)
23 Aug 2004 12:11:26 -0400

          From comp.compilers

Related articles
Linking with different compilers bill.volz@chevrontexaco.com (2004-08-23)
Re: Linking with different compilers ppluzhnikov@charter.net (Paul Pluzhnikov) (2004-08-25)
Re: Linking with different compilers tee.teoh@sympatico.ca (Unknown) (2004-08-25)
Re: Linking with different compilers vidar@hokstad.name (2004-09-03)
| List of all articles for this month |
From: bill.volz@chevrontexaco.com (Bill)
Newsgroups: comp.compilers
Date: 23 Aug 2004 12:11:26 -0400
Organization: http://groups.google.com
Keywords: linker, question
Posted-Date: 23 Aug 2004 12:11:26 EDT

I have some libraries from one vendor that was built with gcc 3.0.2. I
have another set of libraries from another vendor that was built with
gcc 3.3.


I need to link a program that uses both libraries. I can get the two
vendors stuff to link finally, but I'm having trouble with libstdc++
and libgcc_s. The first vendor supplied a version of these in his junk
and I have another version for gcc 3.3. I get incompatibulities
between libstdc++.so.3 in 3.0.2 and libstdc++.so.5 in gcc 3.3. Both
have a libgcc_s.so.1.


When I run the program, I get something to the effect:


exe : library : version GCC_3.3 not found (requied by
.../libstdc++.so.5


I running into problems when I run, in that it can't find versions.


Am I screwed? Or is there someway out of this? Neither vendor is
willing to redo their libraries.


Can I relink the 3.3 shared libries to make them static? I've also
tried to statically link in the 3.3 libstdc++.a library to no avail.


Help is appreciated in advance.


BTW, this is Linux 7.3 on Intel.


Thanks,


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.