* Compatibility between g++ 4.1 and 4.2
@ 2008-01-19 1:39 Stuart Brooks
2008-01-20 16:13 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Stuart Brooks @ 2008-01-19 1:39 UTC (permalink / raw)
To: gcc-help
I was wondering if anyone could tell me whether C++ libraries compiled
with gcc 4.2 are compatible with gcc 4.1 and vice versa. From
http://gcc.gnu.org/onlinedocs/gcc/Compatibility.html I see that:
"Starting with GCC 3.2, GCC binary conventions for C++ are based on a
written, vendor-neutral C++ ABI "
and:
"We have tried hard to provide a stable ABI that will be compatible
with future GCC releases, but it is possible that we will encounter
problems that make this difficult"
Does this mean I should have no problems?
Thanks
Stuart
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compatibility between g++ 4.1 and 4.2
2008-01-19 1:39 Compatibility between g++ 4.1 and 4.2 Stuart Brooks
@ 2008-01-20 16:13 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2008-01-20 16:13 UTC (permalink / raw)
To: Stuart Brooks; +Cc: gcc-help
Stuart Brooks <stuartb@cat.co.za> writes:
> I was wondering if anyone could tell me whether C++ libraries compiled
> with gcc 4.2 are compatible with gcc 4.1 and vice versa. From
> http://gcc.gnu.org/onlinedocs/gcc/Compatibility.html I see that:
> "Starting with GCC 3.2, GCC binary conventions for C++ are based on
> a written, vendor-neutral C++ ABI "
> and:
> "We have tried hard to provide a stable ABI that will be compatible
> with future GCC releases, but it is possible that we will encounter
> problems that make this difficult"
>
> Does this mean I should have no problems?
In general, yes. Assuming there are no bugs. Also see the
-fabi-version option.
Be aware that there was a bug in gcc 4.2.1 which was not in gcc 4.2.0
or gcc 4.2.2: the virtual table layout of the std::type_info class was
accidentally reordered.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-18 16:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-19 1:39 Compatibility between g++ 4.1 and 4.2 Stuart Brooks
2008-01-20 16:13 ` Ian Lance Taylor
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).