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

Re: Can I add a new C++ class in ns?(from Taiwan)



>From your old post:

[~/ns2/ns-2/tcl/test#]ns rr.tcl
invalid command name "TSW"
while executing
"Tsw create _o72 "
invoked from within
"catch "$className create $o $args" msg"
(procedure "new" line 3)
invoked from within
"new Tsw"
(procedure "_o3" line 9)
(Simulator duplex-rio_tsw-link line 9)
invoked from within
"$ns duplex-rio_tsw-link $n(2) $n(3) 5Mb 2ms"
(file "rr.tcl" line 44)
[~/ns2/ns-2/tcl/test#]

Seems a typo. You should always use "TSW", i.e., exactly the same
string in C++ and otcl.

- Haobo