https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82736
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Federico Kircheis from comment #0) > AFAIK, std::chrono::system_clock::now(); uses clock_gettime internally. That depends. Sometimes it uses a system call directly. Sometimes it uses gettimeofday(). Sometimes it just uses time(). Anyway, as Andrew says, this has nothing to do with GCC. The library has an undefined reference to clock_gettime, what the linker does with that depends on the linker, not GCC. Try https://sourceware.org/bugzilla/