Wind is Wild

日常体会,以及笔记

 

error C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp.

error C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. 

error C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead.

编译时遇到这种错误提示,C/C++的预处理器定义里增加以下两个宏定义就行了

_CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_DEPRECATE

posted on 2020-10-16 14:24  ifdef  阅读(1320)  评论(0编辑  收藏  举报

导航