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

Re: trouble with bind






  >> X-Sender: [email protected]
  >> 
  >> Hi,
  >> 	That's not related to bind procedure. You have to initialize such
  >> variables in ns-default.tcl to the appropriate value.

Actually, I had checked for the above, and this was not what was creating the
error I saw. Turned out that it was due to some problem with
makedepend (may be I used it incorrectly). All updated files were not
being compiled. Thus, although the source code was consistent, the 
code compiled by make used an older .o file, thus leading to the error I saw.

Thanks.

- nitin




  >> 
  >> kedar
  >> 
  >> At 04:16 PM 8/14/98 -0700, Nitin Vaidya wrote:
  >> >
  >> >
  >> >I seem to have come across a feature/bug in bind, perhaps due to misuse
  >> >on my part.
  >> >
  >> >
  >> >Here is my scenario:
  >> >
  >> >   DropTail::DropTail() {
  >> >	...
  >> >	bind("drop-front_", &drop_front_);
  >> >	...
  >> >   }
  >> >   
  >> >   
  >> >   NewClass::NewClass() {
  >> >   
  >> >   	DropTail *Q = new DropTail;
  >> >   	
  >> >   } new_class ;
  >> >   
  >> >   
  >> > When the constructor for "new_class" is executed, I get the
  >> > runt-time warning  
  >> > 
  >> >      warning: no class variable NewClass::drop-front_
  >> > 
  >> > Why does this warning appear?
  >> > The warning is issued when executing the "bind" when the constructor
  >> > for object Q (class DropTail) is executed.
  >> > If the constructor is for DropTail class, why does the Warning refer to
  >> > class NewClass ?
  >> > NewClass does not declare or use drop-front_ anywhere.
  >> > 
  >> > Any clarification would be appreciated.
  >> > 
  >> > Regards.
  >> > 
  >> > - nitin
  >> > 
  >> >
  >> >