cc -pthread -Wall -Wextra getlocalename_l.c -o getlocalename_l -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lcrypt -latomic getlocalename_l.c: In function ‘main’: getlocalename_l.c:9:28: error: implicit declaration of function ‘getlocalename_l’ [-Wimplicit-function-declaration] 9 | const char* name = getlocalename_l(LC_COLLATE, LC_GLOBAL_LOCALE); | ^~~~~~~~~~~~~~~ getlocalename_l.c:9:28: error: initialization of ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] getlocalename_l.c:17:14: error: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17 | name = getlocalename_l(LC_COLLATE, locale); | ^