g++ error: ‘stricmp’ was not declared in this scope (but OK for ‘strcmp’) January 2, 2024 by Tarik Try strcasecmp(). Here’s the manual page for it. It is conforming to 4.4BSD and POSIX.1-2001.