Linux下‘stricmp’在此作用域中尚未声明解决办法

来源:互联网 发布:caffe python 教程 编辑:程序博客网 时间:2024/06/05 02:19

Linux‘stricmp’在此作用域中尚未声明解决办法

在使用大小写不敏感函数比较字符串时,很顺手的来了个stricmpg++编译的时候:错误:‘stricmp’在此作用域中尚未声明。

后来查了一下,stricmpwindows特有的。而linuxstrcasecmp,包含在头文件string.h下。问题解决了,happy~