Some users want to know how to use Gurobi with MinGW. It is possible, but they should not do that. This is not the preferred or supported way to use Gurobi.
MinGW is a minimal Unix implementation for Windows that includes the Gnu build tools like gcc. The linker can link to Gurobi binaries.
But there are two better ways to use Gurobi on Windows:
Gurobi supports Microsoft Visual Studio on Windows. The Community edition of Visual Studio is free and can be used to compile Gurobi applications for C, C++, .NET, and more.
Some customers want to use Linux build scripts on Windows as well. These require customization for MinGW, but it is possible. For these cases, customers should instead switch to the Windows Subsystem for Linux, aka "WSL." WSL gives Windows users a complete Linux environment where they can build and run native Linux applications. For customers who want to use a Linux code base to support Windows users, this is the better path.