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

来源:互联网 发布:ps3真高达无双淘宝 编辑:程序博客网 时间:2024/05/16 10:31

最近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

1 0
原创粉丝点击