|
-
May 4th, 1999, 10:51 PM
#1
About Error LNK2005
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|