cc -O2 -pipe -pthread -Wall -Wextra -Werror=implicit-function-declaration time/timer_getoverrun.c -o time/timer_getoverrun -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread time/timer_getoverrun.c:15:18: error: call to undeclared function 'timer_getoverrun'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if ( (overrun = timer_getoverrun(timer)) < 0 ) ^ time/timer_getoverrun.c:33:19: error: use of undeclared identifier 'SIGEV_SIGNAL' .sigev_notify = SIGEV_SIGNAL, ^ time/timer_getoverrun.c:31:18: error: variable has incomplete type 'struct sigevent' struct sigevent event = ^ time/timer_getoverrun.c:31:9: note: forward declaration of 'struct sigevent' struct sigevent event = ^ time/timer_getoverrun.c:37:7: error: call to undeclared function 'timer_create'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if ( timer_create(CLOCK_MONOTONIC, &event, &timer) < 0 ) ^ time/timer_getoverrun.c:54:7: error: call to undeclared function 'timer_settime'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if ( timer_settime(timer, TIMER_ABSTIME, &its, NULL) < 0 ) ^ time/timer_getoverrun.c:63:7: error: call to undeclared function 'clock_nanosleep'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if ( clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &expiration, ^ 6 errors generated.