public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* how to fix "arm-linux-gnueabihf/lib/libstdc++.so: undefined reference to `clock_gettime@GLIBC_2.17'?
@ 2020-03-10 14:13 kipade
  2020-03-10 14:13 ` Florian Weimer
  0 siblings, 1 reply; 9+ messages in thread
From: kipade @ 2020-03-10 14:13 UTC (permalink / raw)
  To: gcc-help

 Hello, I use linaro gcc 5.3 to compile cpp files using -std=gnu++14, and I got an link error:


"/opt/arm-toolchain/linux/linaro/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.3.1/../../../.
./arm-linux-gnueabihf/lib/libstdc++.so: undefined reference to `clock_gettime@GLIBC_2.17'


I have read the man page that, clock_gettime is no longer exists until glibc 2.17, so, i removed clock_gettime from my own code, however,
I still got such error from the compiler. but the compiler can compile some other projects ok.
I hope somebody know how to resolve such problem.
thanks all.

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

end of thread, other threads:[~2020-03-10 15:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10 14:13 how to fix "arm-linux-gnueabihf/lib/libstdc++.so: undefined reference to `clock_gettime@GLIBC_2.17'? kipade
2020-03-10 14:13 ` Florian Weimer
2020-03-10 14:22   ` kipade
2020-03-10 14:24     ` Florian Weimer
2020-03-10 14:35       ` kipade
2020-03-10 14:39         ` Florian Weimer
     [not found]           ` <55b4e707.a652.170c4ecbadd.Coremail.kipade@163.com>
2020-03-10 15:12             ` Florian Weimer
2020-03-10 15:20               ` kipade
2020-03-10 15:01       ` kipade

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