smita vishwakarma wrote: > I have created ping.o but when I am trying to make it is showing this > problem > make: *** No rule to make target ` ', needed by `ns'. Stop. > > how to make target needed by ns? need your help.
The base directory of ns-2 doesn't provide any Makefile. Istead, you need to go to the ns-2.xy directory (e.g., ns-2.31), add your program to the list of to-be-compiled object files in Makefile.in, re-./configure (I recommend copying the switches from the install script) and then do `make'. My configure-line for ns-2.30 looks like this: ./configure --enable-debug --enable-tcldebug=../tcl-debug-2.0 --with-otcl=../otcl-1.12 --with-tclcl=../tclcl-1.18 You should remove the `--enable-tcldebug' switch if you don't use the Tcl debugger. (read: haven't installed and built tcl-debug before.) HTH, --Timo