Does changing the pointer name cause the problem to go away?
struct GfxBase *GraphicsBase = 0;
GraphicsBase = (struct GfxBase *)OpenLibrary("graphics.library", 39);
I tried out the code on my StormC 4 setup and could not duplicate the error. Also, which line is the error reported on?