From GridLAB-D Wiki
Jump to: navigation, search
Main Help Q&A

Silent load failures

Q: Gridlab-D can find the file I'm trying to load, it even says how large the file is with --verbose. However, it immediately fails without a line number, and says that the file cannot be found! What's going on??

A: Check what version of Gridlab-D you're using. If the version is 1.02 "Coulee", C-style double-slash comments will not be supported.

Can't find g++

Q: On Windows, I'm trying to run a GLM file with inline classes, but Gridlab-D says that it can't find g++. What's g++ and how do I get Gridlab-D to find it?

A: g++ is a component of MinGW that Gridlab-D uses to compile inline code prior to loading them. First make sure that MinGW is installed. Second, make sure that either the user environment variables
(My Computer [right click] -> Properties -> Advanced -> Environment Variables) to include "PATH" with the value of the MinGW bin directory (likely c:\MinGW\bin ), or use #setenv path=c:\MinGW\bin within your GLM file.

Can't find rt/gridlabd.h

Q: I'm using inline classes in my glm file, and it can't load the file because Gridlab-D can't find "rt/gridlabd.h", and then gives me a big string of errors about things not being found or not being defined. How do I point it to this file?

A: You need to add #define include="c:\Program Files\gridlab-d", or to the other path you installed Gridlab-D to, to your GLM files to set the -I flag for g++ when it compiles your code. Make sure that there is an rt folder in the Gridlab-D install directory that contains gridlabd.h. If it's missing, manually add the rt folder and download rt/gridlabd.h from the SVN repository.