Dear all,
I'm trying to access the physical layer from the aodv agent. So I need
to include the wireless-phy.h in the aodv.h. However, it gives me the following
compilation errors when i #include <wireless-phy.h>:
In file included from ./aodv/aodv.h:48,
from aodv/aodv_logs.cc:31:
./mac/wireless-phy.h:141: error: expected identifier before 'r'
./mac/wireless-phy.h:141: error: expected `}' before 'r'
./mac/wireless-phy.h:141: error: expected unqualified-id before 'r'
./mac/wireless-phy.h: In member function `bool& WirelessPhy::Is_node_on()':
./mac/wireless-phy.h:108: error: `node_on_' undeclared (first use this function)
./mac/wireless-phy.h:108: error: (Each undeclared identifier is reported only on
ce for each function it appears in.)
./mac/wireless-phy.h: In member function `bool WirelessPhy::Is_sleeping()':
./mac/wireless-phy.h:109: error: `status_' undeclared (first use this function)
./mac/wireless-phy.h: At global scope:
./mac/wireless-phy.h:142: error: `bool node_on_' used prior to declaration
./mac/wireless-phy.h:143: error: no matching function for call to `Sleep_Timer::
Sleep_Timer()'
./mac/wireless-phy.h:56: note: candidates are: Sleep_Timer::Sleep_Timer(const Sl
eep_Timer&)
./mac/wireless-phy.h:58: note: Sleep_Timer::Sleep_Timer(WirelessPhy*)
./mac/wireless-phy.h:144: error: `int status_' used prior to declaration
./mac/wireless-phy.h:146: error: expected unqualified-id before "private"
./mac/wireless-phy.h:146: error: expected `,' or `;' before "private"
./mac/wireless-phy.h: In function `EnergyModel* em()':
./mac/wireless-phy.h:154: error: `node' undeclared (first use this function)
./mac/wireless-phy.h: At global scope:
./mac/wireless-phy.h:156: error: `friend' can only be specified inside a class
./mac/wireless-phy.h:158: error: expected declaration before '}' token
In file included from ./aodv/aodv.h:48,
from aodv/aodv_logs.cc:31:
./mac/wireless-phy.h:42:1: unterminated #ifndef
In file included from aodv/aodv_logs.cc:31:
./aodv/aodv.h:31:1: unterminated #ifndef
make: *** [aodv/aodv_logs.o] Error 1
Without the code of including and accessing the physical layer, i don't have
any
errors and
I can run my aodv script without any problem.
If you have any idea what is the problem, i will be obliged.
Thank you in advance,
Lup.