Try this kind of thang...
GfxBase = (struct GfxBase*)OpenLibrary( "graphics.library", 0L);
if (!GfxBase) {
error("Could not open the Graphics library");
}
IntuitionBase = (struct IntuitionBase*)OpenLibrary( "intuition.library", 0L);
if (!IntuitionBase) {
error("Could not open the Intuition library");
}