Did you know ... Search Documentation:
SWI-Prolog owl logoBuilding SWI-Prolog on MS-Windows

SWI-Prolog for MS-Windows is compiled using MinGW. To be precise, they are generated using the MinGW cross-compiler on a Linux system.

The short advice is don't try this at home. Not convinced? Look here