<ns-users@ISI.EDU>Hello All,

   I am trying for linking C++ and OTcl. I have defined a HerAgent class as
subclass of Agent class. I am trying to link it with parallel OTcl class as
Agent/HerAgentOTcl. But I get following error whrn I followed all the
procedure and tried to run a script trying to create object instance of type
Agent.HerAgentOtcl,

invalid command name "Agent/HerAgentOtcl"
   while executing
"Agent/HerAgentOtcl 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/HerAgentOtcl"
   invoked from within
"set h1 [new Agent/HerAgentOtcl]"
   (file "HerAgent.tcl" line 1)

  Can anyone help me please?


regards,

Abhijeet Mirikar

Reply via email to