This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] I recently moved some code from a 2003 mod to a 2005 mod (vis im talking about here) and besides the new compile sads at some syntax im getting one major error. It doesn't like me making a static class handle (which gets init elsewhere).
Ok in my h file I declared it as extern so any class including that file can use it. It looks like so: extern PD_GlobalData *g_PDGlobals; Now in my cpp file I have it declared as: static PD_GlobalDataInterface (g_PDGlobals); Then when trying to compile I get the error: pd_globaldata.cpp(126) : error C2040: 'g_PDGlobals' : 'PD_GlobalDataInterface' differs in levels of indirection from 'PD_GlobalData *' Now I think this is caused by one being a pointer and the other not. But when I remove the * from extern it has a bigger sad: pd_globaldata.cpp(126) : error C2371: 'g_PDGlobals' : redefinition; different basic types PD_GlobalData.h(59) : see declaration of 'g_PDGlobals' Any ideas of how to fix this? This code ran fine under vis 2003. Mark [Lodle] -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

