g++ error: ‘stricmp’ was not declared in this scope (but OK for 'strcmp')

前端 未结 5 1645
[愿得一人]
[愿得一人] 2020-12-09 02:26

I am trying to compile the following very very simple piece of source code:

#include 
// #include 
// using namespace std;

cl         


        
5条回答
  •  庸人自扰
    2020-12-09 02:59

    If you've got Boost, use boost::algorithm::iequals(s1, s2, std::locale::classic()) in (or leave off locale if you want locale-sensitivity). It works with C strings, std::[w]string, vector, etc.

提交回复
热议问题