Hi,

When you run ./configure, your makefile gets altered. That's why your line
'disappeard'! And as a result, file.o was not created, hence the 'invalid
command' error.
(you only need to run ./configure if you're compiling for the very first
time)

So, once you add the tcp/file.o \    line, just run make. If it's
successfull, it'll create file.o (you can check this)

Then you shouldn't get the error when running your tcl script.

Hope this helps!
Vindya


----- Original Message ----- 
From: "Aleksandar Smolovic" <[EMAIL PROTECTED]>
To: <ns-users@ISI.EDU>
Sent: Wednesday, August 09, 2006 9:40 AM
Subject: [ns] Problem with .o files


>
> Hi all,
>
> I have file.cc and file.h and I put that in for example ~/tcp/file.cc and 
> ~/tcp/file.h.
>
> Now I make neccesary modifications and among other things in OBJ_CC 
> section on "Makefile" I have put this
> .....
> tcp/file.o \
> ......
>
> When I do "./configure" and "make" and "make install" I do not have 
> "file.o" under path where I put file.cc and file.h.
>
> In futher, I open "Makefile" after congifure,make and make install 
> procedure and there is no line I put - the line I mentioned above 
> tcp/file.o \
>
> How can disapear a coplete line from "Makefile" ?
>
> Am I missing something here?
>
> When I try to start ns on prompt I have something like this:
>
> machine:/mypath/# ns
> ns:
> [code omitted because of length]
> : invalid command name "Agent/TCP/WestwoodNR"
>    while executing
> "Agent/TCP/WestwoodNR set current_bwe_ 0"
> machine:/mypath/# ns
>
>
> Thank you.
> 

Reply via email to