comptest118.c:3:24: error: call to undeclared library function 'strrchr' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] int main() { char *x = strrchr("test", 'e'); if (x == NULL) return 0; else return 1; } ^ comptest118.c:3:24: note: include the header or explicitly provide a declaration for 'strrchr' comptest118.c:3:24: error: call to undeclared library function 'strrchr' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] int main() { char *x = strrchr("test", 'e'); if (x == NULL) return 0; else return 1; } ^ comptest118.c:3:24: note: include the header or explicitly provide a declaration for 'strrchr' comptest118.c:3:25: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] int main() { RSA *rsa = RSA_generate_key(1024, RSA_F4, NULL, NULL); if (rsa == NULL) return 0; else return 1; } ^ /usr/include/openssl/rsa.h:235:1: note: 'RSA_generate_key' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ /usr/include/x86_64-pc-linux-gnu/openssl/opensslconf.h:172:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/include/x86_64-pc-linux-gnu/openssl/opensslconf.h:118:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^