title: How to link OpenSSL in windows using MSYS2?
body: <p>I wrote a c++ program using OpenSSL, it works fine on linux but when I try to compile on windows I get an error that <code>libcrypto-1_1-x64.dll</code>, <code>libssl-1_1-x64.dll</code> are missing</p>
  <p>I am compiling using</p>
  <pre><code> g++ main.cpp  -lws2_32 -LC:\msys64\mingw64\bin -IC:\msys64\mingw64\include\openssl
  </code></pre>
  <p>Both dll files can be found in <code>C:\msys64\mingw64\bin</code>, but the executable does not work</p>