Static linking

It's also possible to static link (https://github.com/tesseract-ocr/tesseract/wiki/Compiling#static-linking) Tesseract in your project. This will avoid dlls to be packaged with your executable files. To do this, use vcpkg, like we did previously, with the following command for a 32-bit installation:

vcpkg install tesseract:x86-windows-static

Alternatively, you can use the following command for a 64-bit installation:

vckpg install tesseract:x64-windows-static