./waf configure --enable-examples
./waf
and then running
./simulate.sh
the following error is showing
Waf: Entering directory `/home/parikshit/Desktop/ns-allinone-3.15/ns-3.15/build'
[298/308] cxx: dtn.cc -> ../../build/examples/DTN_SF_UDP/dtn.cc.1.o
cc1plus: warnings being treated as errors
../examples/DTN_SF_UDP/dtn.cc: In constructor ‘DtnApp::DtnApp()’:
../examples/DTN_SF_UDP/dtn.cc:142:10: error: passing NULL to non-pointer argument 1 of ‘std::vector<_Tp, _Alloc>::vector(std::vector::size_type, const value_type&, const allocator_type&) [with _Tp = ns3::Ptr<ns3::Packet>, _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >, std::vector::size_type = unsigned int, value_type = ns3::Ptr<ns3::Packet>, allocator_type = std::allocator<ns3::Ptr<ns3::Packet> >]’
../examples/DTN_SF_UDP/dtn.cc:142:10: error: passing NULL to non-pointer argument 1 of ‘std::vector<_Tp, _Alloc>::vector(std::vector::size_type, const value_type&, const allocator_type&) [with _Tp = ns3::Ptr<ns3::Packet>, _Alloc = std::allocator<ns3::Ptr<ns3::Packet> >, std::vector::size_type = unsigned int, value_type = ns3::Ptr<ns3::Packet>, allocator_type = std::allocator<ns3::Ptr<ns3::Packet> >]’
Waf: Leaving directory `/home/parikshit/Desktop/ns-allinone-3.15/ns-3.15/build'
Build failed
-> task in 'dtn_sf_udp_315' failed (exit status 1):
{task 143722284: cxx dtn.cc -> dtn.cc.1.o}
['/usr/lib/ccache/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-Ibuild', '-I.', '-I.', '-I/home/parikshit/Desktop/ns-allinone-3.15', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_PACKET_H=1', '-DHAVE_DL=1', '-DSQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DENABLE_GSL', '../examples/DTN_SF_UDP/dtn.cc', '-c', '-o', 'examples/DTN_SF_UDP/dtn.cc.1.o']