Hi,

I need to access a common value (the number of administrators on the system) by different instance of a class. So I changed an existing protected class member from int m_nAdminCount to static int m_nAdminCount. It compiled OK but with 2 linking errors :

PKI.obj : error LNK2001: unresolved external symbol "protected: static int CPKI::m_nAdminCount" (?m_nAdminCount@CPKI@@1HA)
.\DEBUG/Screener.exe : fatal error LNK1120: 1 unresolved externals

Can someone please tell me what is wrong and how to define a static member variable. Thanks.

Will