When trying to build with PNG++, I get a compiler error: C3861: strerror_r': identifier not found

Viewed 27

The only code in my project (so far) is:

#include <png++/image.hpp>
#include <png++/rgb_pixel.hpp>

int main()
{
    png::image< png::rgb_pixel > image("nick_cage.png");
    image.write("output.png");

    return 0;
}

I got the png++ package using vcpkg. The full compiler error is Error C3861 'strerror_r': identifier not found pngpptest C:\Dev\vcpkg\packages\pngpp_x86-windows\include\png++\error.hpp 104. I'm using Visual Studio 2022 and intellisense doesn't have any warnings prior to building. Another similar question was answered, however, the response did not work for my situation.

0 Answers
Related