cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations wchar/wcscoll_l.c -o wchar/wcscoll_l -D_POSIX_C_SOURCE=202405L -lm -lpthread -liconv wchar/wcscoll_l.c:5:46: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] int (*foo)(const wchar_t *, const wchar_t *, locale_t) = wcscoll_l; ^ wchar/wcscoll_l.c:5:58: error: use of undeclared identifier 'wcscoll_l'; did you mean 'wcscoll'? int (*foo)(const wchar_t *, const wchar_t *, locale_t) = wcscoll_l; ^~~~~~~~~ wcscoll /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/wchar.h:127:5: note: 'wcscoll' declared here int wcscoll(const wchar_t *, const wchar_t *); ^ wchar/wcscoll_l.c:5:7: error: incompatible function pointer types initializing 'int (*)(const wchar_t *, const wchar_t *, int)' (aka 'int (*)(const int *, const int *, int)') with an expression of type 'int (const wchar_t *, const wchar_t *)' (aka 'int (const int *, const int *)') [-Werror,-Wincompatible-function-pointer-types] int (*foo)(const wchar_t *, const wchar_t *, locale_t) = wcscoll_l; ^ ~~~~~~~~~ 3 errors generated.