Closed sharkwouter closed 1 week ago
Thank you for reporting this issue.
Could you please check if this is resolved if you install the build artifacts from #22585? You can download them from the "Artifacts" drop-down of the "Checks" tab: https://github.com/msys2/MINGW-packages/pull/22585/checks
Description / Steps to reproduce the issue
When building an application which uses jsoncpp statically and linking using the output of
pkgconfig --static --libs jsoncpp
, linking will fail. This started happening since jsoncpp was updated to version 1.9.6. I am running into this issue with my game OceanPop, available here. Below is a smaller example that should reproduce it.main.cpp:
CMakeLists.txt:
Put these in a directory, then run the following commands there:
Expected behavior
As with jsoncpp version 1.9.5, I was expecting the build to link correctly and result in a working binary.
Actual behavior
As seen in the failure of this GitHub workflow, building with jsoncpp version 1.9.6 results in the following error:
This same code build just fine before the update.
Verification
Windows Version
MINGW64_NT-10.0-20348
Are you willing to submit a PR?
I have contributed before, but I don't know if I'll have time to fix this myself.