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

Compilation problem.



Hi,

   I was trying to run an example file and got the following error:

guru>ns example.tcl
_o2: unable to dispatch method namtrace-all
    while executing
"$ns namtrace-all $nf"
    (file "example.tcl" line 3)


Can anyone tell me what the problem is???

The code for the example is given below:

# Starts here

set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf   
proc finish {} {
        global ns nf
        $ns flush-trace
        #Close the trace file
        close $nf
        #Execute nam on the trace file
        exec nam out.nam &
        exit 0
}
set n0 [$ns node]
set n1 [$ns node]
$ns duplex-link $n0 $n1 1Mb 10ms DropTail
$ns at 5.0 "finish"
$ns run

# Ends here


thanks in advance.

satish



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 PUTHALAPAT SATISH KUMAR REDDY(MCSE,MCP+I)   		
                        PROGRAM: MS		   
	     MAJOR: ELECTRICAL AND COMPUTER ENGINEERING  

HOME ADDRESS:					Systems Administrator				 						   	
600 E.ROOSEVELT ST,APT# 284                     Department of Experimental
BATON ROUGE			     	  	Statistics.			                                                         
LOUISIANA 70802                                  

HOME PHONE NO: 					OFFICE PHONE NO:
(5O4)344-8873					(504)388-8316

E-MAIL ADDS:				  
[email protected]				[email protected]                  

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~