cc -O2 -pthread -Wall -Wextra -Werror=implicit-function-declaration pthread/pthread_barrierattr_setpshared.c -o pthread/pthread_barrierattr_setpshared -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -lcrypt pthread/pthread_barrierattr_setpshared.c: In function 'main': pthread/pthread_barrierattr_setpshared.c:18:16: error: implicit declaration of function 'pthread_barrierattr_setpshared'; did you mean 'pthread_barrierattr_destroy'? [-Werror=implicit-function-declaration] 18 | if ( (errno = pthread_barrierattr_setpshared(&attr, shared)) ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_barrierattr_destroy cc1: some warnings being treated as errors