[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] new object creation.



did you implement those functions? If you inherit from Queue, I think you do 
need to as they are virtual. Check droptail.cc and simple-intserv-sched.cc, for 
a plain implementation example.

>X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to 
[email protected] using -f
>From: "Tai Suk Kim" <[email protected]>
>To: "ns-users" <[email protected]>
>Subject: [ns] new object creation.
>Date: Tue, 16 May 2000 15:37:46 -0700
>MIME-Version: 1.0
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
>
>Hi NS-users.
>
>I created one object called AirBurst inherited from Queue (so Queue/AirBurst).
>The following error messge is coming up.
>
>I really appreciate it if you have a solution to resolve the following and let 
me know it.
>
>Sincerely Yours,
>Tai Suk Kim
>
>P.S. actually i insert 'airburst.o' starting by my filename airburst.cc into 
Makefile.
>
>c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM 
-D
>HAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H 
-DHAVE_LIBTK
>8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. 
-I/home/kts/n
>s-allinone-2.1b6/tclcl-1.0b9 -I/home/kts/ns-allinone-2.1b6/otcl-1.0a5 
-I/home/kt
>s/ns-allinone-2.1b6/tkbox/include -I/home/kts/ns-allinone-2.1b6/tclbox/include 
-
>o airburst.o airburst.cc
>airburst.cc: In method `class TclObject * AirBurstClass::create(int, const char
>*const *)':
>airburst.cc:67: cannot allocate an object of type `AirBurst'
>airburst.cc:67:   since the following virtual functions are abstract:
>airburst.cc:67:         void Queue::enque(class Packet *)
>airburst.cc:67:         class Packet * Queue::deque()
>make: *** [airburst.o] Error 1
>

Tarik