undefined reference to stricmp undefined reference to stricmp arrays arrays

undefined reference to stricmp


stricmp is Windows-specific. If you're not on Windows, strcasecmp.


Actually, the error is at link time and NOT at compile time. Your code got compiled to an object file expecting to find implementation of stricmp while linking with other object files which it couldn't find. Hence the error: "undefined reference to stricmp". As bmargulies pointed out, the implementation is available in only on Windows libraries. You can switch to strcasecmp() if you are on POSIX compliant systems.