I add new protocol in ns-2 name "binary marking congestion protocol(bmcc )"
i am using fedora 12 and using ns-allinone-2.33,when i run 'make' command in terminal it give me this error,
gent.cc:(.text._ZN6hdr_nv6accessEP6Packet[hdr_nv::access(Packet*)]+0x7): undefined reference to `hdr_nv::offset_' apps/worm.o:(.rodata._ZTV9AnWormApp[vtable for AnWormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)' apps/worm.o:(.rodata._ZTV10DnhWormApp[vtable for DnhWormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)' apps/worm.o:(.rodata._ZTV7WormApp[vtable for WormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)' collect2: ld returned 1 exit status make: *** [ns] Error 1 how i can solve this error? |
I don't know anything about NS2, but it looks like your source is missing an include for hdr_nv.h and includes for whatever file contains the Process class. Are you sure that you are using the correct version of bmcc with the correct version of NS-2?
|
i use correct version of ns2
|
#1, @bhavinsorathiya : Welcome to LQ.
Quote:
Quote:
The install command for ns-allinone-2.33/ is : $ export CC=gcc34 CXX=g++34 && ./install And the command for reconfiguring / rebuilding ns-2.33/ is : $ export CC=gcc34 CXX=g++34 && ./configure && make - |
|
# 5 .
OK, no issues at building {ns-2.33 + bmccd} : # yum install compat-gcc-34-c++ $ cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install - |
1 Attachment(s)
# 5 .
And ... with the Fedora 12 based CentOS 6.5 : $ ns sample.tcl ... the file `ns.trace', 107.8 MB is created. bmcc-ns233-patching.tar.gz : https://drive.google.com/file/d/0B7S...it?usp=sharing - |
@kundfl It is work, so thank you very much for your suggestion.
And sample.tcl.run.bz2.txt is not open ,so how can i open this file |
# 8 .
How to unpack an attached bzip2 compressed file : a) $ mv sample.tcl-run.bz2.txt sample.tcl-run.bz2 b) $ bunzip2 sample.tcl-run.bz2 - |
have you other tcl script of 'bmcc'protocol ?
@knudfl:thank you. |
How to find link utilisation in % between two nodes node no and n1 from the trace file in ns-2.
|
All times are GMT -5. The time now is 05:39 AM. |