Can anyone help me with the following:
  class Bix
 {
    public:
    static void MyFunction();
 };
 int main()
 {
   void(*ptr)() = &Bix::MyFunction;
   return 0; 
  }
This shows linker error!!! Why?
Can anyone help me with the following:
  class Bix
 {
    public:
    static void MyFunction();
 };
 int main()
 {
   void(*ptr)() = &Bix::MyFunction;
   return 0; 
  }
This shows linker error!!! Why?
 
    
    Bix::MyFunction is declared but never defined. Try
 class Bix
 {
    public:
    static void MyFunction() { printf("Bix::MyFunction"); }
 };
See here for a working variant.
