[ns] bind variables NS
e_cherkaoui@yahoo.fr
e_cherkaoui at yahoo.fr
Wed May 20 00:51:53 PDT 2009
hi all;
i am trying to bind variable from tcl but it doesn't work ...
i add on the constructor of my class handover1 this lines:
bind("cost_",&cost_);
bind("gain_",&gain_);
bind("maxrate_",&maxrate_);
and declare theses one in handover1.h :
float cost_,gain_,maxrate_;
but the problem is when i recompile NS2 with "Make" this error occure :
hsntg/802_21/handover-1.cc:75: erreur: no matching function for call to
>> ‘Handover1::bind(const char [6], float*)’
>> /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:177: note:
>> candidats
>> sont: void TclObject::bind(const char*, TracedInt*)
>> /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:178:
>>
note: void TclObject::bind(const char*, TracedDouble*)
>> /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:179:
>> note: void TclObject::bind(const char*, double*)
>> /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:182:
>> note: void TclObject::bind(const char*, unsigned int*)
>> /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:183:
>> note: void TclObject::bind(const char*, int*)
>> /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:185:
>>
note: void TclObject::bind(const char*, TclObject**)
>> /home/elhadi/Bureau/ns-allinone-2.29/tclcl-1.17/tclcl.h:188:
>> note: void TclObject::bind(const char*, int64_t*)
please what should i add because i respect what is said in the Man ..
More information about the Ns-users
mailing list