* Linking agains libstdc++.so.5 on gcc > 3.4
@ 2008-08-28 15:58 luca regini
2008-09-03 10:50 ` Andrew Haley
0 siblings, 1 reply; 2+ messages in thread
From: luca regini @ 2008-08-28 15:58 UTC (permalink / raw)
To: gcc-help
I am currently using a shared library (whose source i don't have
access to) that is linked against libstdc++.so.5. For reasons that i
am not into explaining we must compile and link
against this library on RedHat Linux EL 5 that comes with a gcc > 4
and defaults its c++ runtime to version 6 ( libstdc++.so.6). This
results in memory leaks because memory
allocated on one runtime cannot be freed on the other. Is there a way
to force linking on libstdc++.so.5? From an internet search it seems
to me that the only way is to build gcc 3.3 on my development box. If
this is the answer then i would like to know how can the built gcc
version be able to use libstdc++.so.5 since the default runtime is
libstdc++.so.6.
Thanks in advance,
Luca Regini
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Linking agains libstdc++.so.5 on gcc > 3.4
2008-08-28 15:58 Linking agains libstdc++.so.5 on gcc > 3.4 luca regini
@ 2008-09-03 10:50 ` Andrew Haley
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2008-09-03 10:50 UTC (permalink / raw)
To: luca regini; +Cc: gcc-help
luca regini wrote:
> I am currently using a shared library (whose source i don't have
> access to) that is linked against libstdc++.so.5. For reasons that i
> am not into explaining we must compile and link
> against this library on RedHat Linux EL 5 that comes with a gcc > 4
> and defaults its c++ runtime to version 6 ( libstdc++.so.6). This
> results in memory leaks because memory
> allocated on one runtime cannot be freed on the other. Is there a way
> to force linking on libstdc++.so.5? From an internet search it seems
> to me that the only way is to build gcc 3.3 on my development box.
This will work.
> If
> this is the answer then i would like to know how can the built gcc
> version be able to use libstdc++.so.5 since the default runtime is
> libstdc++.so.6.
The built gcc has its own copy of libstdc++.so.5. This gets installed
when you install the compiler.
Andrew.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-03 10:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-28 15:58 Linking agains libstdc++.so.5 on gcc > 3.4 luca regini
2008-09-03 10:50 ` Andrew Haley
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).