Tuesday, December 13, 2011

[ns] yes, I've read the FAQ, ns-problems page, but i cannot find solutions on it

Hi, I am now simulating ZMAC on ns2.34,but when I add the new C++ source
file into it and when compile them using command "make", it always report
the following errors:

mac/mac-802_11.cc: In member function =91void Mac802_11::send_timer()=92:
mac/mac-802_11.cc:817: error: =91MAC_MGMT=92 was not declared in this scope
mac/mac-802_11.cc:877: error: =91MAC_BCN=92 was not declared in this scope
mac/mac-802_11.cc: In member function =91void Mac802_11::recvACK(Packet*)=
=92:
mac/mac-802_11.cc:2045: error: =91MAC_MGMT=92 was not declared in this scop=
e
mac/mac-802_11.cc: In member function =91int Mac802_11::check_pktBEACON()=
=92:
mac/mac-802_11.cc:2267: error: =91MAC_BCN=92 was not declared in this scope
mac/mac-802_11.cc: In member function =91int Mac802_11::check_pktASSOCREQ()=
=92:
mac/mac-802_11.cc:2425: error: =91MAC_MGMT=92 was not declared in this scop=
e
mac/mac-802_11.cc: In member function =91int Mac802_11::check_pktASSOCREP()=
=92:
mac/mac-802_11.cc:2536: error: =91MAC_MGMT=92 was not declared in this scop=
e
mac/mac-802_11.cc: In member function =91int
Mac802_11::check_pktAUTHENTICATE()=92:
mac/mac-802_11.cc:2728: error: =91MAC_MGMT=92 was not declared in this scop=
e
mac/mac-802_11.cc: In member function =91int Mac802_11::check_pktPROBEREQ()=
=92:
mac/mac-802_11.cc:2898: error: =91MAC_MGMT=92 was not declared in this scop=
e
mac/mac-802_11.cc: In member function =91int Mac802_11::check_pktPROBEREP()=
=92:
mac/mac-802_11.cc:3013: error: =91MAC_MGMT=92 was not declared in this scop=

e
make: *** [mac/mac-802_11.o] Error 1
I wonder if anyone who have experienced the same error as I do.Please give
me a hand. Thank you!

No comments:

Post a Comment

Counter

blogger analytics