To test your C++ installations, open a x64 Native Tools Command Prompt and navigate to
the directory where you unpacked the binary distribution. Then enter the
following command:
maketest
This runs a selection of examples for OR-Tools. If all the examples run
successfully, you are ready to
get started with OR-Tools.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-05 UTC."],[[["\u003cp\u003eThis guide provides instructions for installing OR-Tools for C++ on Windows 10 64-bit systems using Microsoft Visual Studio 2022.\u003c/p\u003e\n"],["\u003cp\u003eBefore installing, ensure you have Visual Studio 2022 or later with the C++ toolset and access to a x64 Native Tools Command Prompt.\u003c/p\u003e\n"],["\u003cp\u003eDownload and extract the OR-Tools binary distribution for Visual Studio 2022 from the provided link.\u003c/p\u003e\n"],["\u003cp\u003eValidate your installation by running the \u003ccode\u003emake test\u003c/code\u003e command in the extracted directory, which executes example OR-Tools programs.\u003c/p\u003e\n"]]],["OR-Tools for C++ on Windows requires a 64-bit Windows 10 system with Visual Studio 2022 (Enterprise or Community Preview 2+). Installation involves downloading and extracting the x64 binary distribution from the provided link. To build from the command line, you **must** use the x64 Native Tools Command Prompt. Validate the installation by opening this prompt, navigating to the extracted directory, and running `make test`. Successful test results confirm readiness to use OR-Tools.\n"],null,["Introduction\n\nThis guide explains how to install OR-Tools for C++ on Windows.\n\nAlthough these instructions might also work on other Windows variants, we\nhave only tested them on machines meeting the following requirements:\n\n\nWindows 10 64-bit (x86_64) with:\n\n- Microsoft Visual Studio Enterprise 2022\n- Microsoft Visual Studio Community 2022 Preview 2 or above\n\n\u003cbr /\u003e\n\n| **Note:** OR-Tools only provides archives for the **x86_64** (also known as **amd64**) architecture.\n\nPrerequisites\n\nThe following sections describe the prerequisites for installing OR-Tools.\n\nVisual Studio\n\nTo build and run OR-Tools on Windows, you must have Visual Studio 2022 or\nlater installed on your computer with the C++ toolset for Visual Studio.\n\nYou can find more details [here](https://visualstudio.microsoft.com/downloads/?q=Build+Tools+for+Visual+Studio).\n\nTo build OR-Tools programs from the command line you **must** use a\n**x64 Native Tools Command Prompt** (**not** the Developer Command Prompt).\n\nYou can find more details [here](https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line#how-to-get-the-command-line-tools).\n\nInstalling OR-Tools\n\nTake the following steps to install the OR-Tools library for C++:\n\nDownload and extract the binary distribution for your system:\n\n\n- [Visual Studio 2022](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x64_VisualStudio2022_cpp_v9.12.4544.zip)\n\n\u003cbr /\u003e\n\nValidate your installation\n\nTo test your C++ installations, open a x64 Native Tools Command Prompt and navigate to\nthe directory where you unpacked the binary distribution. Then enter the\nfollowing command:\n\n\n make test\n\n\u003cbr /\u003e\n\nThis runs a selection of examples for OR-Tools. If all the examples run\nsuccessfully, you are ready to\n[get started with OR-Tools](../../introduction/cpp)."]]