I've attached some .h and .cpp files so that you can view the code I am having trouble with.

Basically the following errors are being thrown:

Error 2 error C2059: syntax error : '{' c:\users\simon\documents\visual studio 2008\projects\objects\sprite.h 19 objects
Error 3 error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\users\simon\documents\visual studio 2008\projects\objects\sprite.h 19 objects
Error 4 error C2059: syntax error : '{' c:\users\simon\documents\visual studio 2008\projects\objects\sprite.h 23 objects
Error 5 error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\users\simon\documents\visual studio 2008\projects\objects\sprite.h 23 objects
Error 6 error C2065: 'colours' : undeclared identifier c:\users\simon\documents\visual studio 2008\projects\objects\mesh.cpp 14 objects
Error 7 error C2065: 'vertices' : undeclared identifier c:\users\simon\documents\visual studio 2008\projects\objects\mesh.cpp 15 objects
Error 8 error C2065: 'colours' : undeclared identifier c:\users\simon\documents\visual studio 2008\projects\objects\mesh.cpp 16 objects
Error 9 error C2065: 'vertices' : undeclared identifier c:\users\simon\documents\visual studio 2008\projects\objects\mesh.cpp 17 objects
Error 10 error C2065: 'colours' : undeclared identifier c:\users\simon\documents\visual studio 2008\projects\objects\mesh.cpp 18 objects
Error 11 error C2065: 'vertices' : undeclared identifier c:\users\simon\documents\visual studio 2008\projects\objects\mesh.cpp 19 objects
Error 12 error C2065: 'colours' : undeclared identifier c:\users\simon\documents\visual studio 2008\projects\objects\mesh.cpp 20 objects
Error 13 error C2065: 'vertices' : undeclared identifier c:\users\simon\documents\visual studio 2008\projects\objects\mesh.cpp 21 objects
Error 14 error C2059: syntax error : '{' c:\users\simon\documents\visual studio 2008\projects\objects\sprite.h 19 objects
Error 15 error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\users\simon\documents\visual studio 2008\projects\objects\sprite.h 19 objects
Error 16 error C2059: syntax error : '{' c:\users\simon\documents\visual studio 2008\projects\objects\sprite.h 23 objects
Error 17 error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\users\simon\documents\visual studio 2008\projects\objects\sprite.h 23 objects


I am either have a problem with the way in which I have inherited from the base class Sprite or it doesn't like my 2d array decleration in Sprite. I assume the undeclared identifier errors are because the inheritance isn't working correctly. Any help would be greatly appreciated.

In sprite.h the vertices and colours arrays can not be initialized in the class like that. It doesn't work the same as global variables. You have to put the initialization code in the class constructor.

Thanks a lot for that, soon solved the problem :)