On Fri, 17 Feb 2023, 14:59 , wrote: > On 2023-02-17 12:06, Jonathan Wakely wrote: > > > > > That suggests either you built it wrong, or that library is from an > > older > > GCC, not the one you're compiling with. > > thank you Jonathan! > > will check this now. > > > I have one more question. > > just now I rebuild the executable using `-static-libstdc++`, and I can > confirm I can see that option in the linker cmdline, but the executable > still depends on libstdc++.so. > how can this be? > If you're linking to some shared library that depends on libstdc++.so then your executable will depend on it. I think this thread has gone in too long without any details of what commands you're actually using to compile and link. There's only so much people can tell you by guessing.