cc -pipe -O -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 -lrt -lrt -lcrypt time/timer_getoverrun.c: In function 'on_signal': time/timer_getoverrun.c:15:18: error: implicit declaration of function 'timer_getoverrun' [-Werror=implicit-function-declaration] if ( (overrun = timer_getoverrun(timer)) < 0 ) ^~~~~~~~~~~~~~~~ time/timer_getoverrun.c: In function 'main': time/timer_getoverrun.c:37:7: error: implicit declaration of function 'timer_create'; did you mean 'timerclear'? [-Werror=implicit-function-declaration] if ( timer_create(CLOCK_MONOTONIC, &event, &timer) < 0 ) ^~~~~~~~~~~~ timerclear time/timer_getoverrun.c:54:7: error: implicit declaration of function 'timer_settime'; did you mean 'clock_settime'? [-Werror=implicit-function-declaration] if ( timer_settime(timer, TIMER_ABSTIME, &its, NULL) < 0 ) ^~~~~~~~~~~~~ clock_settime cc1: some warnings being treated as errors