I'm try to add multi-interface in ns2 following the paper Adding Multiple Interface Support in NS-2. When changing the file channel.cc, I add code below:
nextX_[this−>index()]
prevX_[this−>index()]
After making this change, I get the following error:
In file included from mac/channel.cc:67:
mac/wireless-phyExt.h: At global scope:
mac/wireless-phyExt.h:70: warning: ‘typedef’ was ignored in this declaration
mac/wireless-phyExt.h:255: warning: ‘typedef’ was ignored in this declaration
mac/channel.cc:70: error: invalid use of ‘this’ at top level
mac/channel.cc:70: error: array bound is not an integer constant
mac/channel.cc:71: error: expected constructor, destructor, or type conversion before ‘prevX_’
make: *** [mac/channel.o] Error 1
what do these mean? thanks!!!