cjamadagni / Wormhole-Attack-ns-3

Simulation of a wormhole attack in ns-3.
10 stars 13 forks source link

Sir, why there's a problem in compiling :( #3

Open johnaerroteope opened 6 years ago

johnaerroteope commented 6 years ago

[1624/2713] Compiling src/aodv/model/aodv-routing-protocol.cc ../src/aodv/model/aodv-routing-protocol.cc: In member function ‘void ns3::aodv::RoutingProtocol::SendRequest(ns3::Ipv4Address)’: ../src/aodv/model/aodv-routing-protocol.cc:990:16: error: ‘class ns3::aodv::RreqHeader’ has no member named ‘SetGratiousRrep’ rreqHeader.SetGratiousRrep (true); ^ ../src/aodv/model/aodv-routing-protocol.cc: In member function ‘void ns3::aodv::RoutingProtocol::RecvRequest(ns3::Ptr, ns3::Ipv4Address, ns3::Ipv4Address)’: ../src/aodv/model/aodv-routing-protocol.cc:1355:79: error: ‘class ns3::aodv::RreqHeader’ has no member named ‘GetGratiousRrep’ SendReplyByIntermediateNode (falseToDst, toOrigin, rreqHeader.GetGratiousRrep ()); ^ ../src/aodv/model/aodv-routing-protocol.cc:1359:72: error: ‘class ns3::aodv::RreqHeader’ has no member named ‘GetGratiousRrep’ SendReplyByIntermediateNode (toDst, toOrigin, rreqHeader.GetGratiousRrep ()); ^ In file included from ./ns3/object-base.h:23:0, from ./ns3/object.h:29, from ./ns3/ipv4.h:24, from ../src/aodv/model/aodv-rtable.h:35, from ../src/aodv/model/aodv-routing-protocol.h:31, from ../src/aodv/model/aodv-routing-protocol.cc:31: ./ns3/type-id.h: In instantiation of ‘static ns3::ObjectBase ns3::TypeId::AddConstructor()::Maker::Create() [with T = ns3::aodv::RoutingProtocol]’: ./ns3/type-id.h:659:3: required from ‘ns3::TypeId ns3::TypeId::AddConstructor() [with T = ns3::aodv::RoutingProtocol]’ ../src/aodv/model/aodv-routing-protocol.cc:166:39: required from here ./ns3/type-id.h:656:34: error: invalid new-expression of abstract class type ‘ns3::aodv::RoutingProtocol’ ObjectBase base = new T (); ^ In file included from ../src/aodv/model/aodv-routing-protocol.cc:31:0: ../src/aodv/model/aodv-routing-protocol.h:53:7: note: because the following virtual functions are pure within ‘ns3::aodv::RoutingProtocol’: class RoutingProtocol : public Ipv4RoutingProtocol ^ In file included from ../src/aodv/model/aodv-rqueue.h:32:0, from ../src/aodv/model/aodv-routing-protocol.h:32, from ../src/aodv/model/aodv-routing-protocol.cc:31: ./ns3/ipv4-routing-protocol.h:172:16: note: virtual void ns3::Ipv4RoutingProtocol::PrintRoutingTable(ns3::Ptr, ns3::Time::Unit) const virtual void PrintRoutingTable (Ptr stream, Time::Unit unit = Time::S) const = 0; ^

Waf: Leaving directory `/home/aerro/Desktop/ns-allinone-3.27/ns-3.27/build' Build failed -> task in 'ns3-aodv' failed (exit status 1): {task 139649843284240: cxx aodv-routing-protocol.cc -> aodv-routing-protocol.cc.1.o} ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-Isrc/aodv', '-I../src/aodv', '-I.', '-I..', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '../src/aodv/model/aodv-routing-protocol.cc', '-c', '-o', '/home/aerro/Desktop/ns-allinone-3.27/ns-3.27/build/src/aodv/model/aodv-routing-protocol.cc.1.o']

waheeda11 commented 5 years ago

I get the same error..could you tell if you have solved it?