LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   NS2 LEACH make problem (https://www.linuxquestions.org/questions/linux-wireless-networking-41/ns2-leach-make-problem-834261/)

dkpcad 09-24-2010 09:19 AM

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.

knudfl 09-24-2010 09:38 AM

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 !
..

dkpcad 10-02-2010 09:04 AM

Thank you. The problem is resolved.


All times are GMT -5. The time now is 08:22 PM.