Skip to content

C:strcmp

Compare two strings.

Troubleshooting

Undefined _stricmp

The -std=c++0x option causes g++ to go into 'strict ANSI' mode so it doesn't declare non-standard functions (and _stricmp() is non-standard - it's just a version of strcmp() that's case-insensitive).

Use -std=gnu++0x instead.

또는,

#ifdef __STRICT_ANSI__
#undef __STRICT_ANSI__
#endif

See also

Favorite site