connection between otcl and c++ error
have downloaded ex-linkage.cc and ex-linkage.tcl codes from the link
http://nile.wpi.edu/NS/linkage.html i followed the steps involved as follows: add the object file in makefile then #make #ns ex-linkage.tcl these steps i followed but got the error message [root@it-sdl019 ns-2.34]# 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 5) thanks in advance friend |
really thanks for replying
|
Quote:
Otherwise, if you are running it from the same directory containing Agent then give "./" before the command name, namely ./Agent/MyAgent0tcl other probable solution would be to check and fix the PATH environment variable before executing the script to include the Agent's path. |
did u manage to solve the problem? i cant
|
you should run the command
#make install after you run command #make in the ns2-*** dir. And then you will run the script correctly. |
All times are GMT -5. The time now is 10:55 AM. |