Managed to get it into a linked library. Added initialization of openGL. Added the setColour Function, added the update and clear functions. Added a rect function and a setLineWidth function. For some reason the rect is still not showing up on the screen ;_;