LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2010, 06:01 AM   #1
rajesh_ds2@yahoo.co.in
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Rep: Reputation: 0
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
 
Old 12-22-2010, 07:35 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
..
 
  


Reply

Tags
linkage, linkage-ns2, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "SIOCADDRT: No such process" when running "service network restart" cmlorentz Linux - Networking 1 11-26-2010 01:06 PM
[SOLVED] Problem running .sh script with "screen" and "java" IJustinI Linux - Newbie 31 06-01-2010 07:13 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM
Eclipse SDK v3.0 running problem: "Permission denied" AlexDunnCpp Linux - Newbie 1 08-03-2004 11:45 AM
problem of "NaN" in redhat 7.3, with gcc-2.96 while running c_code mkh Programming 3 01-12-2004 01:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration