libvips-cpp-42.dll Error in Windows 10 and 11: libvips C++ interface loading

A C++ imaging application fails before creating a libvips operation. When Windows or the app names libvips-cpp-42.dll, record the earliest error and which operation triggers it. A known working sample helps narrow the failure to the app runtime, a feature setting, or the input.
What libvips-cpp-42.dll is used for
The MSYS2 UCRT64 Windows manifest lists libvips-cpp-42.dll in its libvips package. The libvips project reference describes the associated software. Use the package documented for the app and Windows architecture.
Isolate the first error
Compare the distributed C++ wrapper and libvips core versions against the app release. Note the app version and whether the issue followed an update or moving a portable copy. Use a test copy of files you want to keep.
Restore the matching runtime
Restore the complete matching C++ and core libvips bundle. For self-built applications, deploy both from the same toolchain.
For loader or entry-point errors, start with the publisher’s installer or approved app package. Microsoft’s app repair instructions explain where supported apps can be repaired or reset. Save your settings and data before either step. For portable apps, extract the full publisher archive in a new folder. Keep dependencies from the same release and toolchain, and avoid standalone DLL download sites.
Verify the repair
Open a reference image and confirm the app can finish its basic operation. Restart the app and repeat the original workflow. If the issue returns, save the first error and the smallest test case that reproduces it for the app publisher.
For a related check, see the libOpenImageIO-3.2.dll troubleshooting guide. Browse the DLL Errors & Fixes Library for other Windows errors.