balart40@balart40-VirtualBox:~/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25$ ./waf
Waf: Entering directory `/home/balart40/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25/build'
[ 973/1918] Compiling src/wifi/model/essoa-wifi-mac.cc
../src/wifi/model/essoa-wifi-mac.cc: In constructor ‘ns3::EssoaWifiMac::EssoaWifiMac()’:
../src/wifi/model/essoa-wifi-mac.cc:66:68: error: invalid use of incomplete type ‘class ns3::Node’
NS_LOG_UNCOD ("%INFO: This MAC object belongs to node id: "<<node->GetId());
^
In file included from ./ns3/arp-cache.h:29:0,
from ../src/wifi/model/essoa-ESSOARole.h:32,
from ../src/wifi/model/essoa-wifi-mac.h:27,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/net-device.h:37:7: error: forward declaration of ‘class ns3::Node’
class Node;
^
../src/wifi/model/essoa-wifi-mac.cc:66:77: error: ‘NS_LOG_UNCOD’ was not declared in this scope
NS_LOG_UNCOD ("%INFO: This MAC object belongs to node id: "<<node->GetId());
^
In file included from ./ns3/wifi-phy.h:28:0,
from ./ns3/wifi-mac.h:26,
from ../src/wifi/model/regular-wifi-mac.h:24,
from ../src/wifi/model/essoa-wifi-mac.h:25,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/object.h: In instantiation of ‘ns3::Ptr<T> ns3::Object::GetObject() const [with T = ns3::Node]’:
../src/wifi/model/essoa-wifi-mac.cc:65:42: required from here
./ns3/object.h:459:57: error: cannot dynamic_cast ‘((ns3::Object::Aggregates*)((const ns3::Object*)this)->ns3::Object::m_aggregates)->ns3::Object::Aggregates::buffer[0]’ (of type ‘class ns3::Object*’) to type ‘class ns3::Node*’ (target is not pointer or reference to complete type)
T *result = dynamic_cast<T *> (m_aggregates->buffer[0]);
^
./ns3/object.h:465:50: error: incomplete type ‘ns3::Node’ used in nested name specifier
Ptr<Object> found = DoGetObject (T::GetTypeId ());
^
./ns3/object.h:468:60: error: invalid static_cast from type ‘ns3::Object*’ to type ‘ns3::Node*’
return Ptr<T> (static_cast<T *> (PeekPointer (found)));
^
In file included from ./ns3/attribute.h:25:0,
from ./ns3/type-id.h:23,
from ./ns3/object-base.h:23,
from ./ns3/chunk.h:24,
from ./ns3/header.h:24,
from ./ns3/packet.h:25,
from ./ns3/wifi-mac.h:24,
from ../src/wifi/model/regular-wifi-mac.h:24,
from ../src/wifi/model/essoa-wifi-mac.h:25,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/ptr.h: In instantiation of ‘ns3::Ptr<T>::~Ptr() [with T = ns3::Node]’:
../src/wifi/model/essoa-wifi-mac.cc:65:42: required from here
./ns3/ptr.h:756:7: error: invalid use of incomplete type ‘class ns3::Node’
m_ptr->Unref ();
^
In file included from ./ns3/arp-cache.h:29:0,
from ../src/wifi/model/essoa-ESSOARole.h:32,
from ../src/wifi/model/essoa-wifi-mac.h:27,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/net-device.h:37:7: error: forward declaration of ‘class ns3::Node’
class Node;
^
In file included from ./ns3/attribute.h:25:0,
from ./ns3/type-id.h:23,
from ./ns3/object-base.h:23,
from ./ns3/chunk.h:24,
from ./ns3/header.h:24,
from ./ns3/packet.h:25,
from ./ns3/wifi-mac.h:24,
from ../src/wifi/model/regular-wifi-mac.h:24,
from ../src/wifi/model/essoa-wifi-mac.h:25,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/ptr.h: In instantiation of ‘void ns3::Ptr<T>::Acquire() const [with T = ns3::Node]’:
./ns3/ptr.h:741:12: required from ‘ns3::Ptr<T>::Ptr(const ns3::Ptr<T>&) [with T = ns3::Node]’
../src/wifi/model/essoa-wifi-mac.cc:65:42: required from here
./ns3/ptr.h:710:7: error: invalid use of incomplete type ‘class ns3::Node’
m_ptr->Ref ();
^
In file included from ./ns3/arp-cache.h:29:0,
from ../src/wifi/model/essoa-ESSOARole.h:32,
from ../src/wifi/model/essoa-wifi-mac.h:27,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/net-device.h:37:7: error: forward declaration of ‘class ns3::Node’
class Node;
^
Waf: Leaving directory `/home/balart40/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25/build'
Build failed
-> task in 'ns3-wifi' failed (exit status 1):
{task 140520150050896: cxx essoa-wifi-mac.cc -> essoa-wifi-mac.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-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/wifi/model/essoa-wifi-mac.cc', '-c', '-o', '/home/balart40/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25/build/src/wifi/model/essoa-wifi-mac.cc.1.o']
balart40@balart40-VirtualBox:~/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25$ qclear
bash: qclear: command not found
balart40@balart40-VirtualBox:~/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25$
balart40@balart40-VirtualBox:~/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25$ clear
balart40@balart40-VirtualBox:~/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25$ ./waf
Waf: Entering directory `/home/balart40/Desktop/balart40/ns/ns-allinone-3.25/ns-3.25/build'
[ 965/1918] Compiling src/wifi/model/essoa-wifi-mac.cc
../src/wifi/model/essoa-wifi-mac.cc: In constructor ‘ns3::EssoaWifiMac::EssoaWifiMac()’:
../src/wifi/model/essoa-wifi-mac.cc:66:68: error: invalid use of incomplete type ‘class ns3::Node’
NS_LOG_UNCOD ("%INFO: This MAC object belongs to node id: "<<node->GetId ());
^
In file included from ./ns3/arp-cache.h:29:0,
from ../src/wifi/model/essoa-ESSOARole.h:32,
from ../src/wifi/model/essoa-wifi-mac.h:27,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/net-device.h:37:7: error: forward declaration of ‘class ns3::Node’
class Node;
^
../src/wifi/model/essoa-wifi-mac.cc:66:78: error: ‘NS_LOG_UNCOD’ was not declared in this scope
NS_LOG_UNCOD ("%INFO: This MAC object belongs to node id: "<<node->GetId ());
^
In file included from ./ns3/wifi-phy.h:28:0,
from ./ns3/wifi-mac.h:26,
from ../src/wifi/model/regular-wifi-mac.h:24,
from ../src/wifi/model/essoa-wifi-mac.h:25,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/object.h: In instantiation of ‘ns3::Ptr<T> ns3::Object::GetObject() const [with T = ns3::Node]’:
../src/wifi/model/essoa-wifi-mac.cc:65:42: required from here
./ns3/object.h:459:57: error: cannot dynamic_cast ‘((ns3::Object::Aggregates*)((const ns3::Object*)this)->ns3::Object::m_aggregates)->ns3::Object::Aggregates::buffer[0]’ (of type ‘class ns3::Object*’) to type ‘class ns3::Node*’ (target is not pointer or reference to complete type)
T *result = dynamic_cast<T *> (m_aggregates->buffer[0]);
^
./ns3/object.h:465:50: error: incomplete type ‘ns3::Node’ used in nested name specifier
Ptr<Object> found = DoGetObject (T::GetTypeId ());
^
./ns3/object.h:468:60: error: invalid static_cast from type ‘ns3::Object*’ to type ‘ns3::Node*’
return Ptr<T> (static_cast<T *> (PeekPointer (found)));
^
In file included from ./ns3/attribute.h:25:0,
from ./ns3/type-id.h:23,
from ./ns3/object-base.h:23,
from ./ns3/chunk.h:24,
from ./ns3/header.h:24,
from ./ns3/packet.h:25,
from ./ns3/wifi-mac.h:24,
from ../src/wifi/model/regular-wifi-mac.h:24,
from ../src/wifi/model/essoa-wifi-mac.h:25,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/ptr.h: In instantiation of ‘ns3::Ptr<T>::~Ptr() [with T = ns3::Node]’:
../src/wifi/model/essoa-wifi-mac.cc:65:42: required from here
./ns3/ptr.h:756:7: error: invalid use of incomplete type ‘class ns3::Node’
m_ptr->Unref ();
^
In file included from ./ns3/arp-cache.h:29:0,
from ../src/wifi/model/essoa-ESSOARole.h:32,
from ../src/wifi/model/essoa-wifi-mac.h:27,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/net-device.h:37:7: error: forward declaration of ‘class ns3::Node’
class Node;
^
In file included from ./ns3/attribute.h:25:0,
from ./ns3/type-id.h:23,
from ./ns3/object-base.h:23,
from ./ns3/chunk.h:24,
from ./ns3/header.h:24,
from ./ns3/packet.h:25,
from ./ns3/wifi-mac.h:24,
from ../src/wifi/model/regular-wifi-mac.h:24,
from ../src/wifi/model/essoa-wifi-mac.h:25,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/ptr.h: In instantiation of ‘void ns3::Ptr<T>::Acquire() const [with T = ns3::Node]’:
./ns3/ptr.h:741:12: required from ‘ns3::Ptr<T>::Ptr(const ns3::Ptr<T>&) [with T = ns3::Node]’
../src/wifi/model/essoa-wifi-mac.cc:65:42: required from here
./ns3/ptr.h:710:7: error: invalid use of incomplete type ‘class ns3::Node’
m_ptr->Ref ();
^
In file included from ./ns3/arp-cache.h:29:0,
from ../src/wifi/model/essoa-ESSOARole.h:32,
from ../src/wifi/model/essoa-wifi-mac.h:27,
from ../src/wifi/model/essoa-wifi-mac.cc:23:
./ns3/net-device.h:37:7: error: forward declaration of ‘class ns3::Node’
class Node;
^