[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Problem in defining of a new timer
Do you define void MyConnector::drop(Packet *p) ? That could be the
problem. The first non-inline virtual function of the superclass must be
defined in the subclass as well. Otherwise you will get this error
message.
/Anders
On Sat, 23 Dec 2000, Haruki wrote:
> Hi there.
>
> I tried to create a new timer as follows :
>
> class MyConnector : public Connector
>
> ...............
> };
> class MyTimer : public TimerHandler {
> public:
> MyTimer(MyConnector *a) : TimerHandler() { a_ = a; }
> protected:
> void expire(Event *e);
> MyConnector *a_;
> }
>
> and when linking gcc(g++) , I got error message as "undefined reference to
> virtual table".
> Could you please give me the solution of this problem or info?
> Thanks.
>
> rgds,
> Haruki
>
>
> ====Waseda University
> ====Haruki IZUMIKAWA
> ====E-mail$B!'([email protected]
>
>
>
>