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

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

相关文章:

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