Undefined reference to function form C classes

Hi,
I am getting Unresolved references to the function → do_something() when integrated the C into SV env.
Can anyone please help me figure out what the issue is.

below is how my env looks like:
Cmodel class

class model1{
   int a;
   void do_something{
    // Do the processing
   }
}

This is how my top CPP test looks like:

#include model1.cpp
extern "C" {

   void do_pack(){
    // FUnction implementation
    }
   void do_unpack(){
    // FUnction implementation
   }
   void processing(){
     do_something();
    // FUnction implementation
   }
}

This is how my SV top looks like:

module top;
  import "DPI" function void processing();
  DUT(.*)

  initial
  begin
  // input randomization;
  processing();
  // output parsing
  end

endmodule

In reply to sachinherkal:
You need to make do_something() a public method in your model1 class. Then you need to construct an instance of model1 in your C++ test file.

#include model1.cpp
extern "C" {
   model1 m;
   void do_pack(){
    // FUnction implementation
    }
   void do_unpack(){
    // FUnction implementation
   }
   void processing(){
     m.do_something();
    // FUnction implementation
   }
}