LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 09-24-2010, 09:19 AM   #1
dkpcad
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Unhappy NS2 LEACH make problem


when installing LEACH on ns2,writing MAKE command to install the following error occur :


In file included from tools/random.cc:40:
./config.h:60:19: error: tclcl.h: No such file or directory
tools/rng.h:103: error: expected class-name before ‘{’ token
tools/rng.h:342: error: ‘FILE’ has not been declared
tools/random.cc: In function ‘long int random()’:
tools/random.cc:53: error: ‘printf’ was not declared in this scope
make: *** [tools/random.o] Error 1

If anyone has idea , kindly share your views.
 
Old 09-24-2010, 09:38 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
Welcome to LQ. .. .. ..

Assume ns-allinone-2.27.
May be, you are using the "original LEACH Makefile"
in ns-allinone-2.27/ns-2.27 ? It has some wrong paths.

Please have a look at the "1-LEACH-Makefile-modified(.txt)" here
http://www.linuxquestions.org/questi...379/page7.html
> > post # 92. ( You will have to edit to the used compiler : CC= , CXX = .

And please read the threads tagged 'leach' :
LQ Search > 'Search by Tag' , "Tag" = leach

Good luck !
..

Last edited by knudfl; 09-24-2010 at 09:41 AM.
 
Old 10-02-2010, 09:04 AM   #3
dkpcad
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you. The problem is resolved.
 
  


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
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
installing leach patch in ns2.34 in ubuntu9.10 g_vaibh Ubuntu 13 04-29-2014 05:17 PM
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM
problem with re-make in ns2.26 newbie06 Red Hat 1 12-18-2006 06:42 PM


All times are GMT -5. The time now is 05:04 PM.

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