LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 04: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, 01:18 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 06: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, 06:40 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 06:57 AM   #5
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

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


Reply

Tags
mannasim, ns2



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 03:46 AM
error in LEACH.ERR file jeevanpinto Linux - Newbie 0 07-25-2012 05:59 AM
Leach installation on ns2.35-- error after "make" command supu Linux - Newbie 2 03-27-2012 03: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 04:51 AM
error in LEACH charanya Linux - Wireless Networking 0 11-07-2011 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration