Log in

View Full Version : linking error


rakesh_mahajan
03-04-2006, 11:52 AM
I have created a simple dialog based application and added a static integer
variable to dialog class(the class which is derived from CDialog) and using it into class.

when i build project i am getting following error:

Dlg3ComboDlg.obj : error LNK2001: unresolved external symbol "public: static
int CDlg3ComboDlg::i" (?i@CDlg3ComboDlg@@2HA)



If i creates a simple class(which does not derived from any other class) it works fine.

What should be the problem?



Rakesh