LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   leach error (https://www.linuxquestions.org/questions/linux-newbie-8/leach-error-4175443933/)

najma 01-03-2013 04:39 AM

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

knudfl 01-04-2013 01:18 PM

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.

.

najma 01-05-2013 06:05 AM

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’

knudfl 01-07-2013 06:40 AM

Quote:

mannasim/leach/app/leachApp.cc:995: error: no ‘void
Sorry, I didn't see that.

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.

najma 01-07-2013 06:57 AM

ok thanks...


All times are GMT -5. The time now is 09:01 PM.