./config.h:60:19: fatal error: tclcl.h: No such file or directory #include <tclcl.h>
I wants to set up a new routing protocol in ns-2.35. I found the below error when i run the command 'make'.
"In file included from tools/random.cc:40:0: ./config.h:60:19: fatal error: tclcl.h: No such file or directory #include <tclcl.h> ^ compilation terminated. make: *** [tools/random.o] Error 1 " I don't know why this error occuring.... I need some help to remove this error. :confused: need some urgent help ... |
It occurs because you have not install the development package that contains the header (.h) file needed. On Debian the file is contained in the following package.
Code:
:~$ apt-file search tclcl.h |
Sorry sir, i don't understand you. I am using ubuntu 14.04 . To add a new routing protocol i modified the below files in ns-2.35
-cmu-trace.cc -cmutrace.h -ns-packet.tcl -ns-default.tcl -ns-agent.tcl -ns-lib.tcl -ns-mobilenode.tcl -packet.h -priqueue.cc -Makefile before modifying these files there was not any error when i run "make" command. |
Quote:
|
@count : Welcome to LQ.
ns2 : A new added protocol will sometimes fail with missing headers ( tclcl.h ). Solution : 1) First run the ./install command in ns-allinone-2.35/ I.e. './install' takes care doing the ns-2.35 configuring and 'make' in the right way. ( Only ns-2.26 - ns-2.34 can do ./configure right. Not ns-2.35 ! ) If 1) fails : 2) Make copies of the missing header(s) to ns-2.35/common/ ... "tclcl.h" is in ns-allinone-2.35/tclcl-1.20/. . |
Ubuntu 14.04 lacks apt-file, but 16.04 has it now. The package names should be the same (-ish).
$ sudo apt-get install libtclcl1-dev $ make ./config.h:60:19: fatal error: tclcl.h: No such file or directory It failed because it couldn't find the file. Install the package that has the file, problem solved. |
All times are GMT -5. The time now is 09:08 PM. |