leach error
hi,
I m using ns-2.29 with mannasim and i have made few changes in leach protocol by adding two new send member functions “Hello” and "Reply" and its corresponding receive member function "recvHELLO_" and "recvREPLY_" just like ADV_CH(cluster head advertisement) and ADJOIN_REQ (join request) funcions in leachApp.cc and leachApp.h. I have declared the function recvHELLO_ and recvREPLY_ in leachApp.h but when i run the make it gives the following errors for the corresponding receive functions. please guide how to resolve this. regards, najma ismat mannasim/leach/app/leachApp.cc: At global scope: mannasim/leach/app/leachApp.cc:995: error: no ‘void LeachApp::recvHELLO_(char*, int, double, int, int)’ member function declared in class ‘LeachApp’ mannasim/leach/app/leachApp.cc: In member function ‘void LeachApp::clearClusterChoices()’: mannasim/leach/app/leachApp.cc:1106: warning: deleting ‘void*’ is undefined mannasim/leach/app/leachApp.h: At global scope: mannasim/leach/app/leachApp.h:210: warning: inline function ‘void LeachApp::recvReply_(char*, int)’ used but never defined ./mannasim/sensorBaseApp.h:84: warning: inline function ‘virtual void DisseminatingTimer::expire(Event*)’ used but never defined ./mannasim/dataGenerator.h:65: warning: inline function ‘virtual void EventTimer::expire(Event*)’ used but never defined ./mannasim/dataGenerator.h:52: warning: inline function ‘virtual void SensingTimer::expire(Event*)’ used but never defined make: *** [mannasim/leach/app/leachApp.o] Error 1 |
Welcome to LQ.
The text in post #1 shows warnings only ? No errors ? Suggest : Use the 'Report' button to ask a mod for moving the thread to "Programming". And then please show your code in code tags http://www.linuxquestions.org/questi....php?do=bbcode Then hopefully some c++ coders will have a look at your code. . |
the error is in the first and second lines of the make:
mannasim/leach/app/leachApp.cc: At global scope: mannasim/leach/app/leachApp.cc:995: error: no ‘void LeachApp::recvHELLO_(char*, int, double, int, int)’ member function declared in class ‘LeachApp’ |
Quote:
But you will still have to get the thread moved to 'Programming', and to show the code. Nobody can guess the code you have written. |
ok thanks...
|
All times are GMT -5. The time now is 09:01 PM. |