Changed everything to c and made the connection to the GFX library. Compiles