LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-11-2010, 02:15 AM   #1
sandhya_it17m
LQ Newbie
 
Registered: Jan 2010
Posts: 13
Blog Entries: 1

Rep: Reputation: 0
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

Last edited by sandhya_it17m; 01-11-2010 at 02:26 AM. Reason: thanking
 
Old 01-11-2010, 02:50 AM   #2
sandhya_it17m
LQ Newbie
 
Registered: Jan 2010
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: 0
really thanks for replying
 
Old 01-11-2010, 02:58 AM   #3
manavendra
LQ Newbie
 
Registered: May 2009
Location: Bangalore, India
Distribution: Kubuntu 2.6.31-14
Posts: 19

Rep: Reputation: 2
Quote:
Originally Posted by sandhya_it17m View Post
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.
 
0 members found this post helpful.
Old 02-23-2011, 11:24 PM   #4
tootz
Member
 
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
did u manage to solve the problem? i cant
 
Old 04-10-2014, 03:41 AM   #5
Eric Lucien
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
you should run the command
#make install

after you run command #make in the ns2-*** dir.

And then you will run the script correctly.
 
  


Reply



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
need to connect otcl and c++ sandhya_it17m Linux - Networking 1 01-10-2010 01:39 PM
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 12:41 AM
LDAP SERVER Client Connection on SUSE 9.2 - connection error jcarton Linux - Networking 3 03-19-2005 12:40 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo Linux - Networking 4 03-01-2005 01:43 PM
LDAP SERVER - CLIENT CONNECTION on suse 9.2 - connection error nicolasdiogo SUSE / openSUSE 0 03-01-2005 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:56 AM.

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