Original Post
Hi all, i have been trying to create a global object so that it can be manipulated by a variety of classes within my program.... Only problem is i keep getting a variety of errors and i have no idea why =/ i have created a file called GlobalVar.h to store the variable..(and any others i choose to in the future) here it is: #ifndef GLOBAL_VAR_H #define GLOBAL_VAR_H #include "TileMapTool.h" // Globals extern TileMapTool* g_pTMData; #endif TileMapTool is a class... but all i get is these errors: error C2143: syntax error : missing ';' before '*' error C2501: 'g_pTMData' : missing storage-class or type specifiers does anyone have any idea why? its quite annoying >_< thx in advance ^_^