I am working on ns2. I used cygwin which contains gcc-3.2. I make use of http://paulson.in site to download ns2.29 with mannasim patch. I tried the sample WSN tcl program on mannasim, which seems some complex. So i tried modifying it. I tried nam generation for mannasim program. I tried modifing mannasim-rede-nierarquica. Here is the code
mannasim-rede-hierarquica-with-nam