Hi all,
I fallowed all the steps mentioned in nsrt-howto .pdf "Implementing a New Manet 
Unicast Routing Protocol in NS2" but when I recompile ns2 I have compilation 
errors so please if someone has compiled successfully protoname sample , send 
it to me or tell me how can I correct my errors.thank you for your help.
./protoname/protoname.h: At global scope:
./protoname/protoname.h:34: erreur: «protoname_state» does not name a type
./protoname/protoname.h:35: erreur: «protoname_rtable» does not name a type
./protoname/protoname.h:46: erreur: ISO C++ forbids declaration of 
«protoname_state» with no type
./protoname/protoname.h:46: erreur: «protoname_state» declared as an «inline» 
field
./protoname/protoname.h:46: erreur: expected «;» before «&» token
./protoname/protoname.h:47: erreur: expected `;' before «inline»
./protoname/protoname.h: In member function «int& Protoname::accessible_var()»:
./protoname/protoname.h:47: erreur: «accessible_var_» was not declared in this 
scope
protoname/protoname.cc: At global scope:
protoname/protoname.cc:7: erreur: «protoname_pkt» has not been declared
protoname/protoname.cc: In constructor «Protoname::Protoname(nsaddr_t)»:
protoname/protoname.cc:29: erreur: «accessible_var_» was not declared in this 
scope
protoname/protoname.cc: In member function «virtual int Protoname::command(int, 
const char* const*)»:
protoname/protoname.cc:45: erreur: «rtable_» was not declared in this scope
protoname/protoname.cc: In member function «void 
Protoname::recv_protoname_pkt(Packet*)»:


      

Reply via email to