cc -pthread -Wall -Wextra -Werror=implicit-function-declaration time/getdate.c -o time/getdate -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv time/getdate.c: In function ‘main’: time/getdate.c:44:25: error: implicit declaration of function ‘getdate’ [-Wimplicit-function-declaration] 44 | struct tm* tm = getdate("2000-01-01 02:03:04"); | ^~~~~~~ time/getdate.c:44:25: error: initialization of ‘struct tm *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] time/getdate.c:46:47: error: ‘getdate_err’ undeclared (first use in this function) 46 | errx(1, "getdate failed: %i", getdate_err); | ^~~~~~~~~~~ time/getdate.c:46:47: note: each undeclared identifier is reported only once for each function it appears in