我在 VS2013 上收到以下编译错误:
error C4996: '_strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
所以它要求我用同样的东西替换“_strdup”。
我看到很多错误要求用 strdup 替换 _strdup (POSIX),但不是那样。
同样的代码也适用于许多其他人的机器(通常具有相同的项目属性)。所以我认为我不需要更改代码,而是我的 PC 上的一些东西。
任何的想法 ?