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

Re: binding



> 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 ?
Amr,

	I think that you have to give a default value for your new var in 
ns-default.tcl, then this message will probably disappear,!!

Regs,
-A

[PS say hi to the family.. !]

> 
> Thanks in advance,
> 
> -- Amr
> 
>