MinGW

mingw - Runtime class compiler for Windows systems

Windows users must install the MinGW compiler to use runtime classes in GLM files. Which compiler you install depends on whether you are running on a 32-bit (aka win32) or 64-bit (aka x64) machine.

By default, GridLAB-D expects MinGW to be installed in the folder c:\mingw. If you install MinGW in another folder, you should edit the mingw.conf file accordingly.


 * Do not install the 32-bit version of MinGW on a 64-bit machine : Doing so will confuse GridLAB-D. If you run on a 32-bit machine, only the 32bit GridLAB-D will work and it requires you use the 32-bit version of MinGW.  If you run on a 64-bit machine, both versions of GridLAB-D will work and GridLAB-D will tell the 64-bit version MinGW which type of code to emit.

32-bit Machines
On 32-bit systems you should install mingw32-install.exe (from mingw.org), which is located in the SourceForge GridLAB-D tools repository.

64-bit Machines
On 64-bit systems you should install mingw64-install-full.exe (from tdragon.net), which is located in the SourceForge GridLAB-D tools repository.


 * Note : Sometimes the 64-bit installer suggests the folder c:\mingw64 by default. You should use c:\mingw normally.  Only if you are running both versions of GridLAB-D should you attempt to install both versions of MinGW on your system.  Then it's appropriate to install MinGW64 in a different folder than GridLAB-D expects.

Diagnostics
When the wrong type of code is emitted by the MinGW compiler, GridLAB-D receives an error code 193. This is trapped by the core's module handler and the following error message is displayed:

module ' class ' load failed - invalid DLL format

This is most likely to happen if you install the 32-bit version of MinGW on a 64-bit machine and run the 64-bit version of GridLAB-D.

Building GridLAB-D using MinGW
As of including  GridLAB-D can only be built on Windows using MinGW and Eclipse.