Dears, I try compile the source code for Directional MAC, but I encountered a problem says: "/home/johnnysh/Desktop/ns-allinone-2.35/ns-2.35/mac/wireless-phy.h: In function 'EnergyModel* em()': /home/johnnysh/Desktop/ns-allinone-2.35/ns-2.35/mac/wireless-phy.h:143:34: error: 'node' was not declared in this scope EnergyModel* em() { return node()->energy_model(); } ^ /home/johnnysh/Desktop/ns-allinone-2.35/ns-2.35/mac/wireless-phy.h: At global scope: /home/johnnysh/Desktop/ns-allinone-2.35/ns-2.35/mac/wireless-phy.h:145:2: error: 'friend' used outside of class friend class Sleep_Timer; ^ /home/johnnysh/Desktop/ns-allinone-2.35/ns-2.35/mac/wireless-phy.h:147:1: error: expected declaration before '}' token }; ^ make[2]: *** [libdirectional_mac_la-directional_mac.lo] Error 1 make[2]: Leaving directory `/home/johnnysh/Downloads/directionalMac/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/johnnysh/Downloads/directionalMac/src' make: *** [all-recursive] Error 1"
Please help as soon as possible Thank you -- Johnny Shahin Computer and Telecommunication Engineer