public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Relation between gcc version and libstdc++ version
@ 2022-08-30 14:47 Anton Wöllert
  2022-08-30 16:09 ` Jonathan Wakely
  0 siblings, 1 reply; 11+ messages in thread
From: Anton Wöllert @ 2022-08-30 14:47 UTC (permalink / raw)
  To: gcc

Hello list!

I was trying to build a cross-compilation toolchain for a specific
target using a newer GCC version, than the one that the binaries were
build on the target.

The C part seems to work well, but the C++ part doesn't.  It seems that
the G++ ships it's own libstdc++ include headers.  If this libstdc++ is
newer than the one one the target, I get undefined references (because
there are some newer implementation details and things like that).  Is
it possible to tell G++/GCC to use the libstdc++.so from the target and
also to use the C++ headers (like iostream) from the target?
If not, is there any reason this is hard-coded?

With clang it looks like you can specify "any" libstdc++ version you
want, although I haven't tested it yet.

Kind regards,
Anton


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

end of thread, other threads:[~2022-08-30 19:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30 14:47 Relation between gcc version and libstdc++ version Anton Wöllert
2022-08-30 16:09 ` Jonathan Wakely
2022-08-30 16:09   ` Jonathan Wakely
2022-08-30 16:53   ` Anton Wöllert
2022-08-30 17:20     ` Jonathan Wakely
2022-08-30 17:20       ` Jonathan Wakely
2022-08-30 17:21       ` Jonathan Wakely
2022-08-30 17:21         ` Jonathan Wakely
2022-08-30 18:46         ` Anton Wöllert
2022-08-30 19:24           ` Jonathan Wakely
2022-08-30 19:24             ` Jonathan Wakely

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).