had done following steps Download "ex-linkage.cc" file, and save it under the "ns-2" directory. Open "Makefile", add "ex-linkage.o" at the end of object file list.
Re-compile NS using the "make" command. Download the "ex-linkage.tcl" file
that contains "MyAgent" testing OTcl commands.
Run the OTcl script using command "ns ex-linkage.tcl".
i am getting following error
$ ./ns ex-linkage.tcl
invalid command name "Agent/MyAgentOtcl"
while executing
"Agent/MyAgentOtcl create o3 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/MyAgentOtcl"
invoked from within
"set myagent [new Agent/MyAgentOtcl]"
(file "ex-linkage.tcl" line 8