LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   connection between otcl and c++ error (https://www.linuxquestions.org/questions/linux-networking-3/connection-between-otcl-and-c-error-781405/)

sandhya_it17m 01-11-2010 02:15 AM

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

sandhya_it17m 01-11-2010 02:50 AM

really thanks for replying

manavendra 01-11-2010 02:58 AM

Quote:

Originally Posted by sandhya_it17m (Post 3822120)
invalid command name "Agent/MyAgentOtcl"

In your script, you need to give the full path of MyAgent0tcl.

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.

tootz 02-23-2011 11:24 PM

did u manage to solve the problem? i cant

Eric Lucien 04-10-2014 03:41 AM

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.