rustycp
asked on
error LNK2001: unresolved external symbol "public: static bool A::myvar" (?myvar@A@@2_NA)
I'm not clear on why I get that error on this piece of code:
#include "stdafx.h"
class A {
public:
static bool myvar;
};
int _tmain(int argc, _TCHAR* argv[])
{
A::myvar = true;
return 0;
}
Thanks!
#include "stdafx.h"
class A {
public:
static bool myvar;
};
int _tmain(int argc, _TCHAR* argv[])
{
A::myvar = true;
return 0;
}
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER