論文Adding Multiple Interface Support in NS-2に続いて、ns2にマルチインターフェイスを追加しようとしています。ファイルchannel.ccを変更する場合、私は以下のコードを追加:この変更を行った後どのように問題を解決する "エラー:これはトップレベルでの 'this'の無効な使用?
nextX_[this−>index()]
prevX_[this−>index()]
を、私は次のエラーを取得:
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
をこれらが何を意味するのですか? ありがとうございます!