Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `clock_gettime' #1536

Open
cfh763551832 opened this issue Nov 12, 2024 · 2 comments
Open

undefined reference to `clock_gettime' #1536

cfh763551832 opened this issue Nov 12, 2024 · 2 comments
Labels

Comments

@cfh763551832
Copy link

undefined reference to `clock_gettime'

CMakeFiles/thread.dir/__/src/Thread.c.o: In function Thread_wait_cond': Thread.c:(.text+0x390): undefined reference to clock_gettime'
collect2: error: ld returned 1 exit status
test/CMakeFiles/thread.dir/build.make:120: recipe for target 'test/thread' failed
make[2]: *** [test/thread] Error 1
CMakeFiles/Makefile2:537: recipe for target 'test/CMakeFiles/thread.dir/all' failed
make[1]: *** [test/CMakeFiles/thread.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

@jumoog
Copy link
Contributor

jumoog commented Nov 12, 2024

Sound like you don't have <time.h>

@icraggs
Copy link
Contributor

icraggs commented Nov 26, 2024

What OS and version are you using? An older one perhaps? I thought Thread.h should take care of this.

@icraggs icraggs added the build label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants