当我编译代码时,出现了这个错误。
我在 http://savannah.nongnu.org/bugs/?47990 上读到说,这是因为:
我怎样解决这个问题?
Error 3 error C3861: 'strerror_r': identifier not found c:\program files (x86)\microsoft visual studio 12.0\vc\include\png++\error.hpp 108 1 Depth-Estimation
我在 http://savannah.nongnu.org/bugs/?47990 上读到说,这是因为:
In Visual Studio 2015 (14.0.25123.00 Update 2) the definition _STDC_LIB_EXT1_ is not set, meaning that in error.hpp it tries to fall back to strerror_r which isn't available anymore.
Because _STDC_LIB_EXT1_ is not set, _STDC_WANT_LIB_EXT1_ is not defined, string.h is not included, and HAVE_STDERROR_S is not defined.
我怎样解决这个问题?