【问题标题】:strerror_r identifier not found - png++ and Visual Studio 2013未找到 strerror_r 标识符 - png++ 和 Visual Studio 2013
【发布时间】:2017-01-03 09:04:54
【问题描述】:

我正在运行一个需要 png++ 库的 vs 2013 项目。下载并将其包含在我的项目中后,error.hpp 文件中出现错误。

368 IntelliSense: identifier "strerror_r" is undefined  c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\png++\error.hpp  108 32  spsstereo
Error   55  error C3861: 'strerror_r': identifier not found c:\program files (x86)\microsoft visual studio 12.0\vc\include\png++\error.hpp  108 1   spsstereo
Error   154 error C3861: 'strerror_r': identifier not found c:\program files (x86)\microsoft visual studio 12.0\vc\include\png++\error.hpp  108 1   spsstereo
Error   313 error C3861: 'strerror_r': identifier not found c:\program files (x86)\microsoft visual studio 12.0\vc\include\png++\error.hpp  108 1   spsstereo

【问题讨论】:

    标签: visual-studio png libpng


    【解决方案1】:

    接近顶部error.hpp,改

    #ifdef __STDC_LIB_EXT1__
    

    #if defined(__STDC_LIB_EXT1__) || defined(_WIN32)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-25
      • 2016-12-04
      • 1970-01-01
      • 2018-11-13
      • 1970-01-01
      • 2019-12-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多