我制作了一个.tcl文件来模拟基于八卦的Ad路由.当我试图使用NS 2.35运行它时,我得到了以下错误:
xgridsz=, ygridsz=
Sim.: utime/stime: 67 10 stack/heap: -4192 4591616
num_nodes is set 0
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
couldn't read file "": no such file or directory
while executing
"source.orig {}"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $val(cp)"
(file "simAODVG.tcl" line 155)我的tcl文件的链接如下:
https://drive.google.com/file/d/0B1OEPsG0ILELSHhMQzZQdW5STW8/view?usp=sharing
我该怎么解决这个问题?
发布于 2015-11-17 05:45:56
第155行,"":
无法读取文件
"":没有这样的文件或目录
答:""定义在第18行:set val(cp) [lindex $argv 1]
.而argv 1似乎是而不是在任何地方定义的?
https://stackoverflow.com/questions/33748689
复制相似问题