Dll导出静态成员问题?
class AFX_CLASS_EXPORT class1
{
protected:
static double m_Value;
public:
double& GetValue(){return m_Value;}// code 1
};
在class1.cpp中初始化
double class1::m_Value=0.0;
在有(code1)GetValue()时编译会出现“error LNK2001: unresolved external symbol "protected: static double class1::m_Value" (?nnn@class1@@2HA)”
请问如何解决这个问题