http://llvm.org/bugs/show_bug.cgi?id=9399
Summary: libc++.so: undefined reference to `clock_gettime'
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Hi,
When I tried to compile a piece of c++ code
clang++ -std=c++0x -I/usr/include/c++/v1/ ./variadic_print.cpp -lc++
the linker was unable to resolve the symbol clock_gettime.
Of course, it's in librt.so, so simply appending -lrt fixes the problem.
Does libc++ itself depend on librt?
I built libc++ by CMake using clang compiler instead of gcc.
Thanks,
Ryuta
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs