cc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations wchar/wcscasecmp_l.c -o wchar/wcscasecmp_l -D_POSIX_C_SOURCE=202405L -lm -lpthread -liconv wchar/wcscasecmp_l.c:5:46: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 5 | int (*foo)(const wchar_t *, const wchar_t *, locale_t) = wcscasecmp_l; | ^ | int wchar/wcscasecmp_l.c:5:58: error: use of undeclared identifier 'wcscasecmp_l'; did you mean 'wcscasecmp'? 5 | int (*foo)(const wchar_t *, const wchar_t *, locale_t) = wcscasecmp_l; | ^~~~~~~~~~~~ | wcscasecmp /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_wchar.h:200:9: note: 'wcscasecmp' declared here 200 | int wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | ^ wchar/wcscasecmp_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 *)') [-Wincompatible-function-pointer-types] 5 | int (*foo)(const wchar_t *, const wchar_t *, locale_t) = wcscasecmp_l; | ^ ~~~~~~~~~~~~ 3 errors generated.