How do I invoke the MinGW cross-compiler on Linux?
问题 I have a project that I want to cross-compile for Windows. I have the appropriate Makefile and everything works with g++ . I've run $ apt install mingw-w64 and downloaded 500 MB of packages, but I cannot find out how to actually run it. There is no mingw executable, so how do I actually compile with it? 回答1: If you look at the file lists on the Ubuntu package webserver for mingw-w64 's constituent packages: gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-x86-64