I have an issue with unresolved external symbol in Visual Studio. I’ve tried all combination of the definition, but i still get the message
1>Exada.obj : error LNK2001: unresolved external symbol "public: static int (__cdecl** Exada::functions_array)(int)" (?functions_array@Exada@@2PAP6AHH@ZA)
The declaration in my header file Exada.h is like this
const int MAX_FUNCTIONS=179;
class Exada
{
public:
static int (*functions_array[MAX_FUNCTIONS + 2])(int);
…
};
And the definition in Exada.cpp file is
int (Exada:: *functions_array[MAX_FUNCTIONS + 2])(int) = { NULL,
&Exada::aporipteos_ar, //1
&Exada::aporipteos_ar, //2
&Exada::aporipteos_ar, //3
… Some address of functions
}
I appreciate any help. Thanks in advance.