Forum Replies Created
@CharlesPandian wrote:
If you are doing any change in any of the files of ns2, then don’t compile it separately. Instead of it, just change to the ns-allinone-2.xxns-2.xx directory and run make. It will use the Makefile and compile the whole project and create a new binary version of ns2 in the same directory. After that, you can install the new version of ns2 into appropriate path using “make install” command. Some times you have to run the script “configure” before make. Run the commands as follows.
#./configure (dot slash configure)
– the “configure” step is required only once and may not necessary if you are working on a previous installation of ns2.
#make
#make install
Hai charles, i’ve managed to compile my code. U’re very right. I don’t need the g++ command to compile my code. All it needs is just the ‘make’ command. Thanks a lot for your guidance.
Thank you for the suggestions, however FYI i’ve done all the steps that u’ve suggested but my problems remain unresolved. The only temporary solution that i’m working now is to put all the header files into usr/include/ folder to make sure that gcc compiler find the #include header files. But, this solution is not effective since i’ve to make sure that all the sub-header files’ links are pointing on that folder to remove dependencies.
It seems that i need to set something to gcc compiler so it can detect all the header files automatically, but i don’t know how or where to set. Anybody knows about setting up the gcc compiler, please let me know.
Thank you.