C4996:#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

在使用visual studio 2015 写程序时 ,出现了(“The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:”) 的报错

打开你创建的项目  菜单栏下“项目”

C4996:#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

 

然后点击“ 属性/(*属性)”*“是你自己创建项目的名称

接下来我们会看到

然后再左侧找到 ”c/c++” 点击

C4996:#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

点击并找到 其选项下的 ”预处理器“并点击 我们会看到下图

C4996:#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

在右侧 的”预处理器定义” 中点击 <编辑> C4996:#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

C4996:#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

我们在定义框中输入“_CRT_NONSTDC_NO_DEPRECATE”  和“ 

_CRT_SECURE_NO_WARNINGS”

C4996:#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

然后点击确定、应用就可以了。