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

前端 未结 5 1646
[愿得一人]
[愿得一人] 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 03:01

    stricmp is neither POSIX nor ANSI, so it doesn't really matter if strcmp is allowed, if your compiler or standard library is strictly adhering to POSIX or ANSI standard library functions (as is probably the case with the GCC suite).

提交回复
热议问题