How to switch linking from libc++ to libstdc++? #249
Replies: 4 comments 2 replies
-
As far as I know, zig needs a complicated config to link to libstdc++, you can refer to this issue (ziglang/zig#18300). |
Beta Was this translation helpful? Give feedback.
-
but it's pretty common issue, I met this issue on building opencv-rust crate. |
Beta Was this translation helpful? Give feedback.
-
Got it, I thought it was easy to do it since it's just a linking tag, well it's not able to compile rust with g++, and it's not easy to control glibc version with g++, I can already build the program using |
Beta Was this translation helpful? Give feedback.
-
You are right that it is just linking and compiling tags, but it will involve something like And libstdc++ also relies on glibc versions at build time. A possible approach is to build a new gcc toolchain targeting a low version of glibc. |
Beta Was this translation helpful? Give feedback.
-
How to switch linking from libc++ to libstdc++?
Beta Was this translation helpful? Give feedback.
All reactions