use Inline CPP; use Inline CPP => Config => MYEXTLIB => 'my path/test.o'; my $tc=new son(); my $sc=$tc->myget(); # why can not use its father' function? $sc=$tc->get(); __END__ __CPP__ # include "test.h" # include using namespace std; class son: public Test { public: son():Test(){} double myget(); }; double son::myget() { cout<<"myget() is ok\n"; return 2; }