- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- Problem compiling ns-2.34 with eclipse Galileo under ubuntu
Hi all,
I am currently trying to make ns-2.34 work in Eclipse Galileo. Without Eclipse it works and compiles just fine but in Eclipse I have the following errors:
make all
Building file: ../ns_tclsh.cc
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF”ns_tclsh.d” -MT”ns_tclsh.d” -o”ns_tclsh.o” “../ns_tclsh.cc”
Dans le fichier inclus à partir de ../ns_tclsh.cc:28:
../config.h:60:19: attention : tclcl.h : No such file or directory
../ns_tclsh.cc:34: erreur: ‘Tcl_Interp’ was not declared in this scope
../ns_tclsh.cc:34: erreur: ‘interp’ was not declared in this scope
../ns_tclsh.cc:35: erreur: expected ‘,’ or ‘;’ before ‘{’ token
../ns_tclsh.cc: In function ‘int main(int, char**)’:
../ns_tclsh.cc:52: erreur: ‘Tcl_Main’ was not declared in this scope
make: *** [ns_tclsh.o] Erreur 1
I work with ns-2.34 under Ubuntu 9.04.
The workspace for eclipse is ns-allinone-2.34. And the project directory is ns-2.34.
I am guessing the compiler can’t find the file tclcl.h because it is not actually in the project directory but I can’t figure out how to resolve the problem. My environment variables LD_LIBRARY_PATH, and TCL_LIBRARY are well set. I have been looking everywhere but couldn’t find anything that would have helped me.
Thanks for your time and answer.
Albane
Sorry for not answering your question.
Why are you needing such a complex and huge IDE such as Eclipse to compile ns2 ?
./install in a terminal window will do the same thing in more efficient and obvious way.
If you want syntax highlight you may use a simple and good text editor like SciTE to edit the .cc and .h files.
If you want to debug your code with an IDE, then in that case also, we can trace the error just by using some “printf” in appropriate places. (this is the simple way which I am using for debugging 🙂 )
As far as I know, while developing a new protocol the roll of an IDE is very very insignificant.
Once I used a light weight IDE called “Geany IDE” to compile ns2. It was good and really fast.
Kindly explain the need for using Eclipse to compile ns2.
Any way I hope that you are following a procedure like the following one
http://blog.xizi.com/?uid-15519-action-viewspace-itemid-44474
Hi,
As you guessed, I want to use eclipse for the debugger, I don’t really care about the IDE. I am just not satisfy with the printf method, I find it very time consuming.
As for the eclipse installation, yes I have followed the kind of guide you mentioned but it is not working for me. http://blog.karthiksankar.com/ns2-eclipse/
As I don’t really care about a fancy IDE, gedit works fine for me so I tried to use ddd as a debugger and once again I couldn’t make it work. I have the following error:
no such file or directory when I start ns in ddd. I have found some links on the internet saying that it was because the debugger did not get all the information required but I am pretty sure I have made all the changes in the makefile.in and instal files to enable debug mode.
So if you get some hint about ddd, I would be thrilled to give up on Eclipse, never liked it so much either.
Thanks