আমাদের কথা খুঁজে নিন

   

NS2- part3



/ sctp / sctp.h: 705: error: extra qualification 'SctpAgent::' on member 'DumpSendBuffer' make: *** [trace/trace.o] Error 1 make: *** [trace / trace.o] Error 1 Soltuion: Search and open the file sctp.h . Find line 705 , it is : void SctpAgent::DumpSendBuffer(); Now, remove the extra qualification vector SctpAgent, i.e. change the line to , void DumpSendBuffer(); Now save the file and run ./install again. Or , installation can be done after editing the few other files which will generate the error again. . / mobile / god.h: 88: error: extra qualification 'vector::' on member 'operator =' ./mobile/god.h:93: error:extra qualification 'vector::' on member 'operator+=' . / mobile / god.h: 93: error: extra qualification 'vector::' on member 'operator + =' ./mobile/god.h:98: error:extra qualification 'vector::' on member 'operator==' . / mobile / god.h: 98: error: extra qualification 'vector::' on member 'operator ==' ./mobile/god.h:101: error:extra qualification 'vector::' on member 'operator!=' . / mobile / god.h: 101: error: extra qualification 'vector::' on member 'operator! =' Soltuion: Open god.h in the text editor and go to the respective lines , and remove vector:: from the lines just as above. Example: inline void operator=(const vector a) { ./mac/mac-802_11.h: 620: error: extra qualification 'Mac802_11::' on member 'calFreq' make: *** [mac/mac-802_11.o] Error 1 make: *** [mac/mac-802_11.o] Err Solution: Now open mac-802_11.h and go to line 620 and remove Mac802_11:: just as above. dsr / dsragent.cc: 1386: error: 'XmitFlowFailureCallback' was not declared in this scope dsr/dsragent.cc:1403: error: 'XmitFailureCallback' was not declared in this scope dsr / dsragent.cc: 1403: error: 'XmitFailureCallback' was not declared in this scope make: *** [dsr/dsragent.o] Error 1 make: *** [dsr / dsragent.o] Error 1 So now open dsragent.cc , find the respective lines containing XmitFlowFailureCallback or XmitFailureCallback. See, they are called inside a function first and then declared later on. So , just add the following lines ,before the void XXX ( where they were called): void XmitFlowFailureCallback (Packet * pkt, void * data); void XmitFailureCallback(Packet *pkt, void *data); void XmitFailureCallback (Packet * pkt, void * data); diffusion / diffusion.cc: In member function 'void DiffusionAgent:: MACprepare (Packet *, nsaddr_t, int, bool)': diffusion/diffusion.cc:429: error: 'XmitFailedCallback' was not declared in this scope diffusion / diffusion.cc: 429: error: 'XmitFailedCallback' was not declared in this scope make: *** [diffusion/diffusion.o] Error 1 make: *** [diffusion / diffusion.o] Error 1 Open diffusion.cc, add the follwoing line: void XmitFailedCallback(Packet *pkt, void *data); before, void DiffusionAgent::MACprepare(Packet *pkt, nsaddr_t next_hop, int type, bool lk_dtct) diffusion / omni_mcast.cc: In member function 'void OmniMcastAgent:: MACprepare (Packet *, nsaddr_t, unsigned int, bool)': diffusion/omni_mcast.cc:388: error: 'OmniMcastXmitFailedCallback'was not de clared in this scope diffusion / omni_mcast.cc: 388: error: 'OmniMcastXmitFailedCallback'was not de clared in this scope make: *** [diffusion/omni_mcast.o] Error 1 make: *** [diffusion / omni_mcast.o] Error 1 Open omni_mcast.cc , add the following line : void OmniMcastXmitFailedCallback(Packet *pkt, void *data); before, void OmniMcastAgent::MACprepare(Packet *pkt, nsaddr_t next_hop, unsigned int type, bool lk_dtc

সোর্স: http://www.somewhereinblog.net     দেখা হয়েছে বার

অনলাইনে ছড়িয়ে ছিটিয়ে থাকা কথা গুলোকেই সহজে জানবার সুবিধার জন্য একত্রিত করে আমাদের কথা । এখানে সংগৃহিত কথা গুলোর সত্ব (copyright) সম্পূর্ণভাবে সোর্স সাইটের লেখকের এবং আমাদের কথাতে প্রতিটা কথাতেই সোর্স সাইটের রেফারেন্স লিংক উধৃত আছে ।