fatal error: include/chrono: No such file or directory 14 | #include <chrono>

NobinPegasus

Member
Joined
Feb 4, 2022
Messages
53
Reaction score
0
Credits
471
I'm trying to build https://github.com/eunomia-bpf/bpftime/
When I use #include <chrono>, It gives the following error
Code:
fatal error: include/chrono: No such file or directory    14 | #include <chrono>
Code:
pegasus@pegasus:~$ clang --version
clang version 19.0.0git (https://github.com/llvm/llvm-project.git 815644b4dd882ade2e5649d4f97c3dd6f7aea200)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/pegasus/Documents/llvm-project/build/bin
pegasus@pegasus:~$ g++ --version
g++ (Ubuntu 13.2.0-4ubuntu3) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

pegasus@pegasus:~$ gcc --version
gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
Last edited:


Perhaps see where chrono is on the filesystem and adjust the #include accordingly. E.g.:
Code:
[tom@min ~]$ locate chrono
/usr/include/c++/13/bits/chrono.h
/usr/include/c++/13/bits/chrono_io.h
/usr/include/c++/13/chrono
/usr/include/c++/13/experimental/chrono
In this case: #include <c++/13/bits/chrono.h>
YMMV
 

Members online


Top