hi friends
i have got issue when i add skript base this link
https://askubuntu.com/questions/6875...o-sleep-in-ns2
i has been added script in mac-802_11.cc and mac-802_11.h (in attachment)
In file included from ./mac/wireless-phy.h:45:0,
from ./mac/mac-802_11.h:53,
from trace/cmu-trace.cc:48:
trace/cmu-trace.cc: In static member function ‘static void CMUTrace::calculate_broadcast_parameters()’:
./mobile/propagation.h:44:13: error: expected unqualified-id before numeric constant
#define PI 3.1415926535897
^
trace/cmu-trace.cc:1692:9: note: in expansion of macro ‘PI’
double PI,freq,lambda,crossover_dist;
^
trace/cmu-trace.cc:1693:5: error: lvalue required as left operand of assignment
PI = 3.14159265359;
^
trace/cmu-trace.cc:1695:2: error: ‘freq’ was not declared in this scope
freq = atof(tcl.result());
^
trace/cmu-trace.cc:1696:2: error: ‘lambda’ was not declared in this scope
lambda = 3.0e8/freq;
^
trace/cmu-trace.cc:1697:2: error: ‘crossover_dist’ was not declared in this scope
crossover_dist = (4 * PI * h * h) / lambda;
^
make: *** [trace/cmu-trace.o] Error 1
Ns make failed!
See
http://www.isi.edu/nsnam/ns/ns-problems.html for problems
anyone help me to solve this