lry
May 4th, 1999, 10:51 PM
I define some globle variable in my class,and In other class
I define this class's instance,When linking,
there show "error LNK2005,...already defined in *.obj",
why?
For example:
//myclass.h
DWORD dwMyData;
class CMyClass
{
public:
CMyClass(){}
};
//myotherclass.h
#include "myclass.h"
welcome to call me icq 35358130
I define this class's instance,When linking,
there show "error LNK2005,...already defined in *.obj",
why?
For example:
//myclass.h
DWORD dwMyData;
class CMyClass
{
public:
CMyClass(){}
};
//myotherclass.h
#include "myclass.h"
welcome to call me icq 35358130