cc -pipe -O -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_rwlock_clockwrlock.c -o pthread/pthread_rwlock_clockwrlock -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lrt -lcrypt pthread/pthread_rwlock_clockwrlock.c: In function 'main': pthread/pthread_rwlock_clockwrlock.c:16:16: error: implicit declaration of function 'pthread_rwlock_clockwrlock'; did you mean 'pthread_rwlock_wrlock'? [-Werror=implicit-function-declaration] if ( (errno = pthread_rwlock_clockwrlock(&rwlock, CLOCK_MONOTONIC, ^~~~~~~~~~~~~~~~~~~~~~~~~~ pthread_rwlock_wrlock cc1: some warnings being treated as errors