[ns] Rv: PLEASE: ... help with compilation

Douglas Restrepo lucas_max2002 at yahoo.es
Wed Jun 11 12:27:43 PDT 2008



----- Mensaje reenviado ----
De: Douglas Restrepo <lucas_max2002 at yahoo.es>
Para: ns <ns-users at isi.edu>
Enviado: miércoles, 11 de junio, 2008 19:16:08
Asunto: PLEASE: ... help with compilation

Dear all.

I am trying to compile my code but always get this error.

###########################################################################################
num_nodes is set 101

    (_o14 cmd line 1)
    invoked from within
"_o14 cmd addr"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 addr"
    ("eval" body line 1)
    invoked from within
"eval $node addr $args"
    ("default" arm line 2)
    invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
    (procedure "_o3" line 11)
    (Simulator create-wireless-node line 11)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns_ node"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
        set node_($i) [$ns_ node]
        $node_($i) random-motion 0              ;# disable random motion
}"
    (file "simulacion.tcl" line 129)
###########################################################################################

this is the code what i have in the line 129

# Node creation
129: for {set i 0} {$i < $val(nn) } {incr i} {
130:    set node_($i) [$ns_ node]
131:    $node_($i) random-motion 0        ;# disable random motion
132: }


this always refer to me at the line 129, but i don't know why?

Somebody has idea about this kind of error?


i hope yours can help me.

Thankyou



      ______________________________________________ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.



More information about the Ns-users mailing list