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