[ns] Help request in compilation a source code

2014-06-10 Thread Johnny Shahin

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



[ns] Directional MAC implementation

2014-06-10 Thread Johnny Shahin

Dears,

I am working in master degree and my subject about "enhancement for
dsr in ad hoc network using directional antenna". I succeed with
install directional antenna. However I try to install directional MAC.

Any one help me get this library for ns2.

Thank you in advance

-- 
Johnny Shahin
Computer and Telecommunication Engineer