Relation between gcc version and libstdc++ version
Anton Wöllert
a.woellert@gmail.com
Tue Aug 30 14:47:14 GMT 2022
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
More information about the Gcc
mailing list