how to fix "arm-linux-gnueabihf/lib/libstdc++.so: undefined reference to `clock_gettime@GLIBC_2.17'?

Florian Weimer fw@deneb.enyo.de
Tue Mar 10 14:39:45 GMT 2020


* kipade:

> And I checked the libstdc++.so, and really found the
> clock_gettime@GLIBC_2.17' reference call with it.

Would you be able to upload the libstdc++.so file and the
corresponding libc.so.6 file somewhere, preferably with the
corresponding source code?

Where do you get this GCC and glibc?

> If so, was there a method to generate a smart method to fix that,
> for example, implement my own function and exported it with the
> named symbol as clock_gettime@GLIBC_2.17 ?

It is possible to avoid the link error, but you will likely encounter
a run-time error after successful linking, so this is likely not going
to solve your issue.



More information about the Gcc-help mailing list