Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ cat test.c
#include <time.h>
int main ()
{
struct timespec spec;
clock_getres (CLOCK_MONOTONIC, &spec);
}
$ clang test.c -mmacosx-version-min=10.7
$ ./a.out
dyld: lazy symbol binding failed: Symbol not found: _clock_getres
Referenced from: /Users/rolf/test/./a.out
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _clock_getres
Referenced from: /Users/rolf/test/./a.out
Expected in: /usr/lib/libSystem.B.dylib
Trace/BPT trap: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.