[ns] Problem with .o files

2006-08-09 Thread Aleksandar Smolovic

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.


Re: [ns] Problem with .o files

2006-08-09 Thread Prashant Batra

Hi,

Your observations are expected!! The only thing that's going wrong in 
your case is that you do './configure' over and over again !! When you 
run './configure', it regenerates a new Makefile, which overwrites the 
Makefile that you modified. Thus, your changes vanish. So, after you 
modify the Makefile, please do not run the 'configure' file again. Just 
do 'make' and 'make install'

Regards,
Prashant Batra



Aleksandar Smolovic wrote:
 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.

   



Re: [ns] Problem with .o files

2006-08-09 Thread Vindya Amaradasa

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.