'vcpkg C++ wxWidgets 3.1.6 , running application has missing dll "pcre2-16.dll"

I have recently upgraded from wxWidgets 3.1.5 to wxWidgets 3.1.6 with vcpkg. My application used to run fine with version 3.1.5. When I try to run my application with wxWidgets 3.1.6 I get a missing dll error message :

enter image description here

All I did was :

vcpkg install wxwidgets:x64-windows

vcpkg integrate install

I even tried to install it again , but it still didn't work.

I am using the wxWidgets 3.1.6 dll.

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source