LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-03-2013, 05:39 AM   #1
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Rep: Reputation: Disabled
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
 
Old 01-04-2013, 02:18 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,119

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
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.

.
 
Old 01-05-2013, 07:05 AM   #3
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
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’
 
Old 01-07-2013, 07:40 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,119

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
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.
 
Old 01-07-2013, 07:57 AM   #5
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
ok thanks...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ns leach Asharani Linux - Newbie 2 08-21-2012 04:46 AM
error in LEACH.ERR file jeevanpinto Linux - Newbie 0 07-25-2012 06:59 AM
Leach installation on ns2.35-- error after "make" command supu Linux - Newbie 2 03-27-2012 04:20 AM
I got an error while running leach package in ns2.. help me to get out of this error. rkgowrishankar Linux - Software 1 02-07-2012 05:51 AM
error in LEACH charanya Linux - Wireless Networking 0 11-07-2011 06:50 AM


All times are GMT -5. The time now is 03:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration