class PossibilisticShellClustering
{
public:
PossibilisticShellClustering(void);
~PossibilisticShellClustering(void);
static void SetParameters(double deltaDistance);
static double deltaDistance
};
and i wanto to initialize static variable deltaDistance in function SetParameters. So in *.cpp file I wrote
void PossibilisticShellClustering::SetParameters(double deltaDistance)
{
PossibilisticShellClustering::deltaDistance = deltaDistance;
}
however I get linker erros
unresolved external symbol "public: static double PossibilisticShellClustering::deltaDistance" (?deltaDistance@PossibilisticShellClustering@@2NA)
Could somebody tell me why ?
PossibilisticShellClustering.obj
static double deltaDistance?