public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Binary compatibility of gcc 3.4.4 and gcc 4.2.0
@ 2009-03-16  9:23 jvl072170
  2009-03-16 10:01 ` Andrew Haley
  0 siblings, 1 reply; 4+ messages in thread
From: jvl072170 @ 2009-03-16  9:23 UTC (permalink / raw)
  To: gcc-help

Hello,

I want to build a program in GNU g++ 4.2.0 linking it with a static
librrayd object built using gcc 3.4.4. Does the libxyz.a compiled using
gcc 3.4.4 link properly with a program being compiled using gcc 4.2.0

I checked both the compilers use ABI version 2.
Version 4.2.o uses libstdc++.so.6.0.8 while 3.4.4. uses libstdc++.so.6.0.3.
What is the diffrence among these two versions of libstdc++??

I am getting some errors.
Please reply.


Regards
Priya

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Binary compatibility of gcc 3.4.4 and gcc 4.2.0
  2009-03-16  9:23 Binary compatibility of gcc 3.4.4 and gcc 4.2.0 jvl072170
@ 2009-03-16 10:01 ` Andrew Haley
  2009-03-16 22:41   ` Marc Glisse
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Haley @ 2009-03-16 10:01 UTC (permalink / raw)
  To: jvl072170; +Cc: gcc-help

jvl072170@cse.iitd.ernet.in wrote:

> I want to build a program in GNU g++ 4.2.0 linking it with a static
> librrayd object built using gcc 3.4.4. Does the libxyz.a compiled using
> gcc 3.4.4 link properly with a program being compiled using gcc 4.2.0

Usually yes, but not with C++.

> I checked both the compilers use ABI version 2.
> Version 4.2.o uses libstdc++.so.6.0.8 while 3.4.4. uses libstdc++.so.6.0.3.
> What is the diffrence among these two versions of libstdc++??

These libraries are not binary compatible, sorry.  You'll have to
recompile.

Andrew.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Binary compatibility of gcc 3.4.4 and gcc 4.2.0
  2009-03-16 10:01 ` Andrew Haley
@ 2009-03-16 22:41   ` Marc Glisse
  2009-03-17  4:34     ` jvl072170
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Glisse @ 2009-03-16 22:41 UTC (permalink / raw)
  To: Andrew Haley; +Cc: jvl072170, gcc-help

On Mon, 16 Mar 2009, Andrew Haley wrote:

>> I want to build a program in GNU g++ 4.2.0 linking it with a static
>> librrayd object built using gcc 3.4.4. Does the libxyz.a compiled using
>> gcc 3.4.4 link properly with a program being compiled using gcc 4.2.0
>
> Usually yes, but not with C++.
>
>> I checked both the compilers use ABI version 2.
>> Version 4.2.o uses libstdc++.so.6.0.8 while 3.4.4. uses libstdc++.so.6.0.3.
>> What is the diffrence among these two versions of libstdc++??
>
> These libraries are not binary compatible, sorry.  You'll have to
> recompile.

Are you sure about that? They are both libstdc++.so.6, so the more recent 
version is supposed to be backwards compatible with the older one. Or were 
you talking about something else?

To the OP: not saying what error you get does not help...

-- 
Marc Glisse

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Binary compatibility of gcc 3.4.4 and gcc 4.2.0
  2009-03-16 22:41   ` Marc Glisse
@ 2009-03-17  4:34     ` jvl072170
  0 siblings, 0 replies; 4+ messages in thread
From: jvl072170 @ 2009-03-17  4:34 UTC (permalink / raw)
  To: gcc-help

Yes,

Since libstdc++.so.6.0.8 is a higher version over libstdc++.so.6.0.3,
are they not binary compatible??
Do they use the same or different name mangling algorithms??

When the application binary interface of GNU gcc 3.4.4 and GNU gcc 4.2.0
is same, what else do we need to see to check their compatibility?

My work environment is g++ 4.2.0 but my program has to link with a static
library which has been compiled with g++ 3.4.4.













On Mon, 16 Mar 2009, Andrew Haley wrote:
>
>>> I want to build a program in GNU g++ 4.2.0 linking it with a static
>>> librrayd object built using gcc 3.4.4. Does the libxyz.a compiled using
>>> gcc 3.4.4 link properly with a program being compiled using gcc 4.2.0
>>
>> Usually yes, but not with C++.
>>
>>> I checked both the compilers use ABI version 2.
>>> Version 4.2.o uses libstdc++.so.6.0.8 while 3.4.4. uses
>>> libstdc++.so.6.0.3.
>>> What is the diffrence among these two versions of libstdc++??
>>
>> These libraries are not binary compatible, sorry.  You'll have to
>> recompile.
>
> Are you sure about that? They are both libstdc++.so.6, so the more recent
> version is supposed to be backwards compatible with the older one. Or were
> you talking about something else?
>
> To the OP: not saying what error you get does not help...
>
> --
> Marc Glisse
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-17  4:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-16  9:23 Binary compatibility of gcc 3.4.4 and gcc 4.2.0 jvl072170
2009-03-16 10:01 ` Andrew Haley
2009-03-16 22:41   ` Marc Glisse
2009-03-17  4:34     ` jvl072170

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).