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

Re: binding



>
> From:  "Amr A. Awadallah" <[email protected]>
> To:    [email protected]
> Subject: binding
> Date:  Fri, 14 Nov 1997 19:21:35 PST
>
> 
> Hi,
> 
>   I am adding a new agent which inherits from Reno. So the class name is:
> 
> Agent/TCP/Reno/MyAgent
> 
>   I have a binding in the C++ constructor of that class as follows:
> 
>   bind("my_var_", &my_var_);
> 
>   Compilation works fine, but when I run ns I get the following warning:
> 
> warning: no class variable Agent/TCP/Reno/MyAgent::my_var_
> 
>   I was wondering what is the reason of this warning ?
> 
> Thanks in advance,
> 
> -- Amr
> 

you need to add a default value for your new variable
in tcl/lib/ns-default.tcl

=- K