Using vcpkg with Non-MSVC Compilers

Can I use vcpkg with other compilers like MinGW or Clang on Windows?

Yes, vcpkg supports integration with various compilers on Windows, including MinGW and Clang. To use vcpkg with a non-MSVC compiler, you need to set the appropriate triplet when installing packages.

For example, to install a package for MinGW-w64, you can use the x64-mingw-static triplet:

.\vcpkg install spdlog --triplet x64-mingw-static

Make sure to configure your build system or IDE to use the correct compiler and include paths for the installed packages.

Installing vcpkg on Windows

An introduction to C++ package managers, and a step-by-step guide to installing vcpkg on Windows and Visual Studio.

Questions & Answers

Answers are generated by AI models and may not have been reviewed. Be mindful when running any code on your device.

Updating vcpkg and Installed Packages
How can I update vcpkg and the installed packages to the latest versions?
Using vcpkg with CMake Projects
How can I integrate vcpkg with my CMake projects on Windows?
Choosing the vcpkg Installation Directory
Does the location where I install vcpkg matter? Are there any best practices?
Managing vcpkg with Version Control Systems
Should I include the vcpkg directory in my version control system?
Using vcpkg with Continuous Integration Systems
How can I use vcpkg in a continuous integration (CI) environment?
Or Ask your Own Question
Get an immediate answer to your specific question using our AI assistant