There are different ways to compile and link C/C++ Gurobi projects on Windows. This list should help you decide which approach works best for you. We recommend using the native Windows libraries either through Visual Studio directly or via CMake.
We provide native C/C++ libraries as well as Visual Studio solution files that can be extended and modified to fit your project. Make sure to follow the respective instructions for your specific version of Visual Studio. Visual Studio Community is available free of charge and contains both the IDE and the compiler suite.
CMake can be used to write build recipes that work natively on multiple platforms (Windows, Linux, and macOS) and can be executed entirely on the command line. We provide the necessary files to configure your project and find the necessary Gurobi libraries.
MinGW, MSYS or Cygwin
These tools are ports or emulations of Linux for Windows and try to provide a (minimal) Linux environment. While you can use those to compile your project, we do not provide support for them.
WSL - Windows Subsystem for Linux
The WSL is a modern way to work with Linux on Windows and can often replace tools like MinGW, Cygwin. WSL allows working in a more or less native Linux environment and the GNU Compiler collection (gcc) can also be used. Since this is a relatively new development, there can be certain incompatibilities.