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

time.h on mac #5

Open
xor256 opened this issue Aug 15, 2016 · 0 comments
Open

time.h on mac #5

xor256 opened this issue Aug 15, 2016 · 0 comments

Comments

@xor256
Copy link

xor256 commented Aug 15, 2016

cc -g -c -o main.o main.c -ltime
clang: warning: -ltime: 'linker' input unused
main.c:51:5: warning: implicit declaration of function 'clock_gettime' is
invalid in C99 [-Wimplicit-function-declaration]
clock_gettime(CLOCK_REALTIME, &start);
^
main.c:51:19: error: use of undeclared identifier 'CLOCK_REALTIME'
clock_gettime(CLOCK_REALTIME, &start);
^
main.c:54:19: error: use of undeclared identifier 'CLOCK_REALTIME'
clock_gettime(CLOCK_REALTIME, &end);
^
1 warning and 2 errors generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant