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

Re: Code Error



Haobo,

Not quite !! 

The 32bit addressing problem i.e. using dst_addr_ instead of dst_ is OK !! But 
take for example mftp_demo.tcl code from Chris's site

http://www.cs.vu.nl/~chris/Thesis/mftp/mftp_readme.html

and try to compile the code in ns-2.1b6 !! You might understand the error I am 
talking about !!


-- Martin

> 
> I had the impression that it's changed to dst_addr_ (as a result of the
> 32bit addressing).
> 
> - Haobo
> 
> On Sat, 15 Jan 2000, Martin Koyabe wrote:
> 
> > Hi all,
> > 
> > I am trying to compile some code in ns-2.1b6-current 'snapshot' and I get 
the 
> > following error at this line:
> > 
> > ---code line---
> > 
> > # I am trying to set address for sender_addr
> > 
> > set sender_addr [$sender set addr_]  
> > 
> > 
> > ---error message---
> > can't read "addr_": no such variable
> >     while executing
> > "subst $[subst $var]"
> >     (procedure "_o84" line 5)
> >     (Object next line 5)
> >     invoked from within
> > "_o84 next addr_"
> >     ("eval" body line 1)
> >     invoked from within
> > "eval $self next $args"
> >     (procedure "_o84" line 18)
> >     (Agent set line 18)
> >     invoked from within
> > "$mftp1 set addr_"
> >     (file "mftp_demo.tcl" line 87)
> > ------
> > 
> > Any suggestions of possible cause of error !!
> > 
> > -- Martin
> > 
> > 
> > 
> 

---------------------------------------------------------------------
Martin L.W.D Koyabe			e-mail: [email protected]
Electronics Research Group		
Fraser Noble Building			
King's College, AB24 3UE		(Off) +44-01224-272813
Aberdeen, UK				(Mob) +44-07881-610825