LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   problem running " ns ex-linkage.cc " of jae young's ns by example (https://www.linuxquestions.org/questions/programming-9/problem-running-ns-ex-linkage-cc-of-jae-youngs-ns-by-example-851790/)

rajesh_ds2@yahoo.co.in 12-22-2010 06:01 AM

problem running " ns ex-linkage.cc " of jae young's ns by example
 
sir/madam

I was trying to compile Jae Young's "ns by example" programm " ex-linkage.cc " .
My problem got solved as far compiling is considered by linux forum QA . Later I compiled and did the changes to " Makefile " .
I then ran command "make" . Everything went fine .
But when i execute "ns ex-linkage.tcl" it says "invalid command name " agent/MyAgent/Otcl "
I have changed the name ex-linkage.(cc,o) to j.(cc,o)

What is the solution for this sir/madam

knudfl 12-22-2010 07:35 AM

cd ns-allinone-2.34/ns-2.34/ && ./ns ex-linkage.tcl

Result : identical to http://nile.wpi.edu/NS/linkage.html :
Code:

warning: no class variable Agent/MyAgentOtcl::my_var1_otcl

        see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/MyAgentOtcl::my_var2_otcl

Message From MyPrivFunc
    my_var1 = 2
    my_var2 = 3.140000

Please do not make any changes to the file names.
I.e ex-linkage.cc , ex-linkage.o , ex-linkage.tcl : Work OK.
..


All times are GMT -5. The time now is 04:06 AM.