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

Re: Compilation error



Nader,

You'll be suprised what I foung to be the problem !!

I found that ~/tcl/mcast/mftp_rcv.tcl and ~/tcl/mcast/mftp_snd.tcl need to be 
updated as follows in order to compile well with 'dst_addr_' change !!

replace 'dst_' with 'dst_addr_' in mftp_rcv.tcl [lines 44,46,48,57,59] also
replace 'dst_' with 'dst_addr_' in mftp_snd.tcl [lines 65,67,70]

Hope these changes will be updated in the next ns release !!


-- Martin


> 
> Martin,
> 
> Take a look at agent.cc and agent.h and you'll see that dst_ is
> decmposed into daddr_ and dport_.  
> 
> Nader
> 
> 
> >>> "Martin" == Martin Koyabe <[email protected]> writes:
> 
> Martin> Hi all, I am compiling my source code and keep getting this
> Martin> error:
> 
> Martin> ---error---
> 
> Martin> Koyabe @ churchward 705 > !ns ns mftp_2.tcl Creating 2 Nodes
> Martin> .....  Creating Links .....  Transmitting 2000000 byte file
> Martin> with group-size 16 simulation is running...  ns: _o112 start:
> Martin> can't read "dst_": no such variable while executing "expr
> Martin> $dst_" (procedure "_o112" line 4) (Agent/MFTP/Snd start line
> Martin> 4) invoked from within "_o112 start"
> 
> Martin> ---end---
> 
> Martin> Can someone tell me what that error means ?
> 
> Martin> -- Martin
> 
> Martin> e-mail: [email protected]
>