[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: instprocs problem



After taking away the line -"source ns-autoconf.tcl" in tcl/lib/ns-lib.tcl,
I managed to compile ns. However no ns.lib or ns.exp was created.
When I tried to run it, it displayed the entire contents of the files in
tcl/lib and then ends with the error message -
: invalid command name "Node/SatNode"
    while executing
"Node/SatNode instproc init args {
eval $self next $args           :# parent class constructor

.....
.....

Any clue? Thank you.


-----Original Message-----
From: Haobo Yu
To: Tan Yuan Sin
Cc: '[email protected]'
Sent: 8/14/99 4:23 AM
Subject: Re: instprocs problem

If you look your ns-2/tcl/gen/, you should find something like (these
are
files generated under win98 and vc5.0)

-rwxrwxr-x  1 root  wheel  1344436 Aug  9 14:06 ns_tcl.cc*
-rwxrwxr-x  1 root  wheel   365187 Aug  9 14:06 ns_tcl.o*
-rwxrwxr-x  1 root  wheel     8198 Aug  9 14:07 ptypes.cc*
-rwxrwxr-x  1 root  wheel     3038 Aug  9 14:07 ptypes.o*
-rwxrwxr-x  1 root  wheel       34 Aug  9 14:04 version.c*
-rwxrwxr-x  1 root  wheel      292 Aug  9 14:04 version.o*

I suspect that there might be problem in generating ns_tcl.cc (which
embeds all tcl scripts into c++). Can you see if it's done correctly? 

BTW, You should not have ns-autoconf.tcl because it's generated by
configure which is not available under win*. 

- Haobo

On Sat, 14 Aug 1999, Tan Yuan Sin wrote:

> I checked my otcl installation and the output is as follows: 
> PASSED objectdispatch 
> PASSED paperexamples 
> PASSED classcreate 
> PASSED inheritance 
> PASSED classdestroy 
> PASSED objectinits 
> PASSED objectvariables 
> PASSED autoload 
> 
> I am trying to compile NS2.1b6 using VC++6. One problem I noticed is
there
> were no ns.lib and ns.exp after compilation. Could this be due to the
fact
> that I don't have the file ns-autoconf.tcl in my ~ns2/tcl/lib/ ? I
only have
> ns-autoconf.tcl.in in that directory. 
> Thank you for your kind attention.