在使用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:")

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

相关文章:

  • 2022-01-17
  • 2021-03-31
  • 2022-12-23
  • 2021-10-25
  • 2021-09-13
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
猜你喜欢
  • 2021-09-24
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案