I am trying to access information available (SINR) at the Physical layer
from the routing layer (AODV.cc). I managed  successfully to access the MAC
layer from the routing layer using the explanation gives in the following
link
http://jsun74.blogspot.com/2010/10/cross-layer-design-in-ns2-how-can.html.
When I used the same process to access the Physical layer  (wireless-PyExt.h
and .cc) I am getting some errors that i don't understand. NS-2.34 is
complaining about some variables that it says they are undeclared
variables but i went
to those folders i can see those variables are declared. I am completely
lost I don't know what to do.   Your help will be highly appreciated.
 Here is the following errors i am getting:
                 from ./mobile/propagation.h:49:0,

                 from ./mac/wireless-phyExt.h:62,

                 from ./aodv/aodv.h:44,

                 from aodv/aodv_logs.cc:32:

./mac/wireless-phy.h:130:38: error: expected identifier before 'r'

./mac/wireless-phy.h:130:38: error: expected ‘}’ before 'r'

./mac/wireless-phy.h:130:38: error: expected unqualified-id before 'r'

./mac/wireless-phy.h: In member function ‘bool& WirelessPhy::Is_node_on()’:

./mac/wireless-phy.h:97:37: error: ‘node_on_’ was not declared in this scope

./mac/wireless-phy.h: In member function ‘bool WirelessPhy::Is_sleeping()’:

./mac/wireless-phy.h:98:34: error: ‘status_’ was not declared in this scope

./mac/wireless-phy.h: At global scope:

./mac/wireless-phy.h:132:14: error: no matching function for call to
‘Sleep_Timer::Sleep_Timer()’

./mac/wireless-phy.h:132:14: note: candidates are:

./mac/wireless-phy.h:58:2: note: Sleep_Timer::Sleep_Timer(
WirelessPhy*)

./mac/wireless-phy.h:58:2: note:   candidate expects 1 argument, 0 provided

./mac/wireless-phy.h:56:7: note: Sleep_Timer::Sleep_Timer(const
Sleep_Timer&)

./mac/wireless-phy.h:56:7: note:   candidate expects 1 argument, 0 provided

./mac/wireless-phy.h:135:1: error: expected unqualified-id before ‘private’

./mac/wireless-phy.h:145:2: error: ‘friend’ used outside of class

./mac/wireless-phy.h:147:1: error: expected declaration before ‘}’ token

make: *** [aodv/aodv_logs.o] Error 1

Reply via email to