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
