Je suis essayer d'ajouter multi-interface en ns2 suite à l'article Adding Multiple Interface Support in NS-2. Lors de la modification du fichier channel.cc, ajouter le code ci-dessous:comment résoudre le problème "erreur: utilisation invalide de 'ceci' au plus haut niveau"?
nextX_[this−>index()]
prevX_[this−>index()]
Après avoir fait ce changement, je reçois l'erreur suivante:
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
qu'est-ce que cela signifie? merci !!!