Adding Multiple Interface Support in NS-2 다음의 ns2에 멀티 인터페이스를 추가하려고합니다.문제를 해결하는 방법 "오류 : 최상위 레벨에서 'this'를 잘못 사용하셨습니까?
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
이 무엇을 의미합니까 : 나는 다음과 같은 오류가 얻을이 변경을 한 후
nextX_[this−>index()]
prevX_[this−>index()]
: 파일 channel.cc을 변경할 때, 나는 아래의 코드를 추가? 감사합니다.