Hello Sir,
when I add inner bound attribute in my program then I also create a innerbox.h and innerbox.cc program and include these files in my main program when I run it then I get an error given below.please help me to solve these error.
kanta@kanta-HP-ProBook-4530s:~/Desktop/ns-allinone-3.20/ns-3.20$ ./waf --run scratch/kk
Waf: Entering directory `/home/kanta/Desktop/ns-allinone-3.20/ns-3.20/build'
[1750/2332] cxx: src/mobility/model/kaliramana-mobility-model.cc -> build/src/mobility/model/kaliramana-mobility-model.cc.1.o
[1996/2332] cxx: scratch/kk.cc -> build/scratch/kk.cc.8.o
../src/mobility/model/kaliramana-mobility-model.cc: In static member function ‘static ns3::TypeId ns3::KaliramanaMobilityModel::GetTypeId()’:
../src/mobility/model/kaliramana-mobility-model.cc:31:76: error: no matching function for call to ‘ns3::BoxValue::BoxValue(ns3::InnerBox)’
../src/mobility/model/kaliramana-mobility-model.cc:31:76: note: candidates are:
./ns3/box.h:111:1: note: ns3::BoxValue::BoxValue(const ns3::Box&)
./ns3/box.h:111:1: note: no known conversion for argument 1 from ‘ns3::InnerBox’ to ‘const ns3::Box&’
./ns3/box.h:111:1: note: ns3::BoxValue::BoxValue()
./ns3/box.h:111:1: note: candidate expects 0 arguments, 1 provided
./ns3/box.h:111:1: note: ns3::BoxValue::BoxValue(const ns3::BoxValue&)
./ns3/box.h:111:1: note: no known conversion for argument 1 from ‘ns3::InnerBox’ to ‘const ns3::BoxValue&’
../scratch/kk.cc: In function ‘int main(int, char**)’:
../scratch/kk.cc:185:90: error: no matching function for call to ‘ns3::MobilityHelper::SetMobilityModel(const char [29], const char [7], ns3::BoxValue, const char [12], ns3::BoxValue, const char [9], ns3::TimeValue, const char [6], ns3::DoubleValue, const char [13], ns3::StringValue, const char [14], ns3::StringValue, const char [10], ns3::StringValue, const char [15], ns3::StringValue, const char [16], ns3::StringValue, const char [12], ns3::StringValue)’
../scratch/kk.cc:185:90: note: candidate is:
./ns3/mobility-helper.h:121:8: note: void ns3::MobilityHelper::SetMobilityModel(std::string, std::string, const ns3::AttributeValue&, std::string, const ns3::AttributeValue&, std::string, const ns3::AttributeValue&, std::string, const ns3::AttributeValue&, std::string, const ns3::AttributeValue&, std::string, const ns3::AttributeValue&, std::string, const ns3::AttributeValue&, std::string, const ns3::AttributeValue&, std::string, const ns3::AttributeValue&)
./ns3/mobility-helper.h:121:8: note: candidate expects 19 arguments, 21 provided
Waf: Leaving directory `/home/kanta/Desktop/ns-allinone-3.20/ns-3.20/build'
Build failed
-> task in 'ns3-mobility' failed (exit status 1):
{task 154061708: cxx kaliramana-mobility-model.cc -> kaliramana-mobility-model.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-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_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '../src/mobility/model/kaliramana-mobility-model.cc', '-c', '-o', 'src/mobility/model/kaliramana-mobility-model.cc.1.o']
-> task in 'kk' failed (exit status 1):
{task 157573420: cxx kk.cc -> kk.cc.8.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I.', '-I..', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-I/usr/include/python2.7', '-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_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '../scratch/kk.cc', '-c', '-o', 'scratch/kk.cc.8.o']