您的位置:首页 > 运维架构 > Linux

linux gcc编译undefined reference to `stricmp'问题

2016-05-24 09:00 399 查看
最近gcc编译遇到这样的问题:undefined reference to `stricmp'.

查了下,stricmp是Windows特有函数。

解决方法:

stricmp是Microsoft's compilers/libraries.linux下用
strcasecmp
代替。

问题解决。

有兴趣不防看看/usr/include/string.h文件,没有stricmp声明。

参考:
http://stackoverflow.com/questions/5918697/undefined-reference-to-stricmp
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: