[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:�┝�蓿繙就�粮㏍芍��轣蛹≒鳫�笏蜿遐�竚癈鷭∂焜聨纃瘟赧漓�籬�㏍聽轣蛹就喝激偽究眼癌亀儀桁亀究玩玩輝碓灸輝騎騎碓換究岩汲求究碓究灸碓鬼翫⊂桿轣蛹Γ蔚飴頏阡繝�籟鹿畩�������������������鹿侑転��次⑬忰啄糯㍼罩羅齠瘍絖梼筬Ⅹ�次⑬忰欄臑閼丨梼筬Ⅹ�次⑬忰楠跛阯㏄頌⑬�屡匸�次⑬忰楠跛阯㏄頌㌧鈔⑬�次⑬忰吶聽鱚釿纉⑬�次⑬忰吶聽鱚釿纉㌧鈔⑬�次⑬忰啄�良⑬�謝名�写評會纐�磔�鶴��紗墟藁脳質�頒兎就逑膂彊拘��譬紹綺�梹黥�齡瘢靜痺諷�迚齠蜴�肬�肬鴉癆熏鼇┤�崑�闔�嫩仄�昭�墟藁脳�鹿棉�写評励��磔�鶴��紗墟藁脳質�頒兎就逑膂彊攻��譬詔銖��鱇韆鹿曽鹿嘖厦稜�鹿棉�写評會纐�磔��鱚痲�紗墟藁脳質�頒兎就逑膂彊慌��譬詔銖�會閧跂�蜴�粤肅鉗鈑�閹��鈬��辣鮗�昭�墟藁脳�鹿棉�写評励��磔��鱚痲�紗墟藁脳質�頒兎就逑膂彊恒��譬詔銖�銖⑱�盖�瘍緕�辣齠瘍綣�昭�墟藁脳�鹿棉�写評侮粤�纉��謝名�写評質�頒兎就轣蛹跚齡��譯斡姐帰昭嘖厦稜渉癆綣�墟藁脳鹿曽鹿棉�写評質�頒兎就�鱚痲鶤蔗迪0彊控⊂紗墟藁脳壽鱚痲鹿嘖厦稜昭�昭�評�鹿嫐�鹿棉�鹿嫐��次⑬忰啄�良㌧鈔⑬�次⑬忰專纈㌃闖�鬮Ⅹ�次⑬忰專纈㌃闖�鬮梼筬Ⅹ�首竰蜷�籬�㏍聲齷釿就聲踈紜�齟秉�邃遶竍薇黹鱸頸鶩泣灸箏恩�跫�肚癇絖齡癆蜒�轣蛹℡繝閼絎迚隨褥⊂鹿黹鱸頸昭�歪拆�鹿挽楊�