C1121: Definition needed if called with explicit scope resolution

[INFORMATION]

Description

A definition for a pure virtual function is not needed unless explicitly called with the qualified-id syntax (nested-name-specifier [template] unqualified-id).

Example
  class A{

  
   public:

  
    virtual void f(void) = 0;  // pure virtual function.

  
  };

  
  class B : public A{

  
   public:

  
    void f(void){ int local=0; }

  
  };

  
  void main(void){

  
    B b;

  
    b.A::f();                // generate a linking error cause

  
                             // no object is defined.

  
    b.f();                   // call the function defined in

  
                             // B class.

  
  }

  
Tips

Correct the source.