Re: [ns] ns-2.33 re-compilation error

2008-12-08 Thread Ramy Eid

Thanks waleed for reporting this back :-D

On Sun, Dec 7, 2008 at 00:08, Waleed Tuffaha <[EMAIL PROTECTED]> wrote:

>
> I found out the problem. It turned out that the install script in
> ns-allinone-2.33/ replaces the make-file in the ns-2.33/ directory with the
> original one. so my files weren't being compiled when I ran 'make', and in
> those files I had the class that inherits from PacketHeaderClass and binds
> the 'hdr_dgab_pkt::offset_' , and this cause the undefined reference error.
>
> Nevertheless, this small problem caused me a sever headache.
>
>
> On Sat, Dec 6, 2008 at 7:28 PM, Waleed Tuffaha <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> >
> > I was writing an agent in ns-2.33 and it was compiling and working well.
> > Then I tried to recompile ns-allinone 2.33 with debugging enabled and I
> got
> > the following error:
> >
> > trace/cmu-trace.o: In function `hdr_dgab_pkt::access(Packet const*)':
> >
> cmu-trace.cc:(.text._ZN12hdr_dgab_pkt6accessEPK6Packet[hdr_dgab_pkt::access(Packet
> > const*)]+0x7): undefined reference to `hdr_dgab_pkt::offset_'
> > collect2: ld returned 1 exit status
> > make: *** [ns] Error 1
> >
> > Note that the same code didn't give any errors when I was compiling the
> > ns-2.33  directory only, but when I ran ./install in the ns-allinone-2.33
> > directory I got that error.
> >
> > Does anyone know what causes this error or how to solve it ?
> >
> > Thanks,
> > -- Waleed
> >
>
>
>
> --
> Waleed Tuffaha.
>



-- 
Ramy Eid


Re: [ns] Help pleaseeee!! i am new 2 NS

2008-12-08 Thread Ramy Eid

may this help you :)
http://www.isi.edu/nsnam/ns/doc/node266.html

On Mon, Dec 8, 2008 at 15:42, new2ns08 <[EMAIL PROTECTED]> wrote:

>
>
> Dear all,
>
> I am using NS-2 to do my final year project. It is my first time to use
> both
> NS-2 and TCL. I need to do random generation for my simulation but I don't
> know how to do that! and I couldn't find any kind of help on that please
> please do help me as i have only few days left to complete the first part
> of
> the project that is running my wireless simulation for randomly generated
> number of nodes. Any help will do!
>
> Hoping to hear from you all, I would like to thank you very much in
> advancee!
>
> Best regards,
>
> B  :-)
> --
> View this message in context:
> http://www.nabble.com/Help-pleas%21%21-i-am-new-2-NS-tp20895597p20895597.html
> Sent from the ns-users mailing list archive at Nabble.com.
>
>


-- 
Ramy Eid


[ns] Using NAM with NS2? "couldnt execute nam"?

2008-12-08 Thread Syed Faraz Hasan

Hi all,

I have used two sample programs for executing the traces on NAM using the 
ns2.33. All goes well until...

exec nam out.nam & command is executed, from the following FINISH function.

proc finish {} {
global ns nam_file
$ns flush-trace
close $nam_file
exec nam out.nam &
exit 0
}

The error message is
ns: finish: could not execute "nam": no such file or directory
while executing
"exec nam out.nam &" (procedure FINISH line 5)
invoked from within
"finish"

I am using NAM 1.13, the nam executes without any problem when I type
%./nam
(on ns2 prompt)

I have no idea how to resolve this. Can some one help me please?

Faraz



[ns] Help pleaseeee!! i am new 2 NS

2008-12-08 Thread new2ns08


Dear all,

I am using NS-2 to do my final year project. It is my first time to use both
NS-2 and TCL. I need to do random generation for my simulation but I don't
know how to do that! and I couldn't find any kind of help on that please
please do help me as i have only few days left to complete the first part of
the project that is running my wireless simulation for randomly generated
number of nodes. Any help will do! 

Hoping to hear from you all, I would like to thank you very much in
advancee!

Best regards,

B  :-)
-- 
View this message in context: 
http://www.nabble.com/Help-pleas%21%21-i-am-new-2-NS-tp20895597p20895597.html
Sent from the ns-users mailing list archive at Nabble.com.