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

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

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

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

接下来我们会看到

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

#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")
点击并找到 其选项下的 ”预处理器“并点击 我们会看到下图

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

在右侧 的”预处理器定义” 中点击 <编辑> 
#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")
然后出现  
#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")
我们在定义框中输入**“_CRT_NONSTDC_NO_DEPRECATE”  和“ 
_CRT_SECURE_NO_WARNINGS”** 
#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

最后点击“应用”,如下图 
#("The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:")

然后点击“确定”,去重新编译  ,应该会通过 。

相关文章: