I'm attaching both the files here:
my code and the udp-server.cc which i tried to run.kindly suggest me to how to add packet header so that i can differentiate TX and RX values for each recived packed to calculate delay.
error is:
Build failed
-> task in 'udp-server' failed (exit status 1):
{task 59849424: cxxprogram udp-server.cc.1.o -> udp-server}
['/usr/bin/g++', '-pthread', '-pthread', '-Wl,-Bsymbolic-functions', '-Wl,-z,relro', 'scratch/udp-server.cc.1.o', '-o', '/home/chitraxi/Downloads/repos/tarballs/ns-allinone-3.17/ns-3.17/build/scratch/udp-server', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L/usr/lib', '-lns3.17-test-debug', '-lns3.17-csma-layout-debug', '-lns3.17-point-to-point-layout-debug', '-lns3.17-netanim-debug', '-lns3.17-lte-debug', '-lns3.17-spectrum-debug', '-lns3.17-antenna-debug', '-lns3.17-aodv-debug', '-lns3.17-dsdv-debug', '-lns3.17-dsr-debug', '-lns3.17-mesh-debug', '-lns3.17-olsr-debug', '-lns3.17-csma-debug', '-lns3.17-wimax-debug', '-lns3.17-applications-debug', '-lns3.17-virtual-net-device-debug', '-lns3.17-uan-debug', '-lns3.17-energy-debug', '-lns3.17-flow-monitor-debug', '-lns3.17-nix-vector-routing-debug', '-lns3.17-tap-bridge-debug', '-lns3.17-visualizer-debug', '-lns3.17-internet-debug', '-lns3.17-bridge-debug', '-lns3.17-point-to-point-debug', '-lns3.17-mpi-debug', '-lns3.17-wifi-debug', '-lns3.17-buildings-debug', '-lns3.17-propagation-debug', '-lns3.17-mobility-debug', '-lns3.17-config-store-debug', '-lns3.17-tools-debug', '-lns3.17-stats-debug', '-lns3.17-emu-debug', '-lns3.17-fd-net-device-debug', '-lns3.17-topology-read-debug', '-lns3.17-network-debug', '-lns3.17-core-debug', '-lrt', '-lgsl', '-lgslcblas', '-lm', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-lxml2', '-lsqlite3', '-lpython2.7']