cc -O2 -pthread -Wall -Wextra uselocale.c -o uselocale -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -lcrypt uselocale.c: In function 'main': uselocale.c:12:24: warning: implicit declaration of function 'uselocale'; did you mean 'setlocale'? [-Wimplicit-function-declaration] 12 | locale_t old_locale = uselocale(locale); | ^~~~~~~~~ | setlocale uselocale.c:12:24: warning: initialization of 'locale_t' {aka 'struct _locale *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] uselocale.c:15:13: warning: assignment to 'locale_t' {aka 'struct _locale *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 15 | old_locale = uselocale((locale_t) 0); | ^ ld: ../out/netbsd/basic/uselocale.o: in function `main': uselocale.c:(.text.startup+0x28): undefined reference to `uselocale' ld: uselocale.c:(.text.startup+0x3b): undefined reference to `uselocale'