error C4996: 'getcwd': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getcwd. See online help for details. c:\users\12968\desktop\testapp\testapp\testapp.c

解决办法:

属性》C/C++》预处理器定义》分别输入:

  _CRT_SECURE_NO_WARNINGS

  _CRT_SECURE_NO_DEPRECATE

》保存退出即可

猜你喜欢

转载自www.cnblogs.com/xian-yongchao/p/10241477.html