Girma Kassa wrote: > I wrote a new protocol and try to patch to > ns-allinone-2.29. What I did is > 1. I wrote the header and source files in C++ > 2. I make necessary changes as stated on manuals that > I got from internet > 3. I changed the make file, i.e. add a line > mipbu/mipbu.o\ where mipbu is a folder in ns-2.29 and > mipbu.o the source file to be created. > 4. Finally I try to execute make > but I got an error " no rule to make mipbu.o needed by > mipbu/mipbu.cc"
Did you edit the right Makefile? There's Makefile.in and Makefile. One of them gets overwritten by the template one when you do a make clean. Make sure you edit the template Makefile and then re-make from scratch. Or, edit the current *and* the template Makefile so that it works without a `make clean' and next time you clean up, you won't get into trouble. HTH, --Timo