LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Help with NS2.34 (https://www.linuxquestions.org/questions/linux-networking-3/help-with-ns2-34-a-879003/)

MounaRM 05-05-2011 09:35 AM

Help with NS2.34
 
Hello my friends .

I hope you will help me cause I'm suffring with NS2 (version 2.34 )!!
Actually , I've 2 questions :
first :
I tried to install NS2.34 on ubuntu 11.04 , it won't work !!
I installed the GCC 4.3 , and I modified the makefile.in in the ./ns-allinone-2.34/otcl-1.13 !
still I got this error :
Code:

tools/ranvar.cc:219:70: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly
tools/ranvar.cc:219:70: error:  for a function-style cast, remove the redundant ‘::GammaRandomVariable’
make: *** [tools/ranvar.o] Error 1

Second :
I tried to install NS2.34 on ubuntu 9.10 .
this time the installation finished succefully .
but when I tried to run my new protocol , I've got this error :
Code:

trace/cmu-trace.o: In function `hdr_ant_pkt::access(Packet const*)':
cmu-trace.cc:(.text._ZN11hdr_ant_pkt6accessEPK6Packet[hdr_ant_pkt::access(Packet const*)]+0x7): undefined reference to `hdr_ant_pkt::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Erreur 1

I can locate the source of this error ,in fact , I have no "hdr_ant_pkt::access(Packet const*)" in "cmu-trace.cc"

I hope you will help me ,so I can,at least , work with one version .
Thanks alot .


All times are GMT -5. The time now is 02:11 PM.