Installing vcpkg on Windows

Using vcpkg with Non-MSVC Compilers

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

Abstract art representing computer programming

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.

Answers to questions are automatically generated and may not have been reviewed.

A computer programmer
Part of the course:

Professional C++

Comprehensive course covering advanced concepts, and how to use them on large-scale projects.

Free, unlimited access

This course includes:

  • 125 Lessons
  • 550+ Code Samples
  • 96% Positive Reviews
  • Regularly Updated
  • Help and FAQ
Free, Unlimited Access

Professional C++

Comprehensive course covering advanced concepts, and how to use them on large-scale projects.

Screenshot from Warhammer: Total War
Screenshot from Tomb Raider
Screenshot from Jedi: Fallen Order
Contact|Privacy Policy|Terms of Use
Copyright © 2024 - All Rights Reserved