OK, after that do I need to modify any files or classes in ns2, I have added the Ricean model classes to the mobile directory using this method, but when I try to use it in my Tcl test code using the follwing code : / /********************************************************** set val(prop) Propagation/Ricean ;# radio-propagation model
set prop_inst [$ns_ set propInstance_] $prop_inst MaxVelocity 2.5; $prop_inst RiceanK 6; $prop_inst LoadRiceFile "rice_table.txt"; / ***********************************************************/ I got the follwing error: "invalid command "Propagation/Ricean" What shall I do? Thanx Samer Bali <[EMAIL PROTECTED]> wrote: You should add it to Makefile.in under OBJ_CC (as I remember). Then you run configure then make. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ghada Al-Mashaqbeh Sent: Dienstag, 11. September 2007 20:21 To: [email protected] Subject: Re: [ns] How to add new C++ classes to NS-2 2.31? Do I must add the line mobile/Ricean.o to the Makefile or the Makefile.in then run configure then make in the ns2 directory? Is this method correct? Thanx Ye YiBin wrote: > > > You may need this page: > http://www.isi.edu/nsnam/ns/tutorial/nsnew.html > > Is that Ricean.h and Ricean.cc? > Try to add "mobile/Ricean.o" around Line235 on Makefile in ns directory. > Paste your error messages here if it doesn't work. > > On 9/11/07, Ghada Al-Mashaqbeh wrote: >> >> >> Dear all, >> >> I am new to NS-2, and frankly I am still in the learning phase to use it >> in >> my Master Thesis, I am trying to include the .cc and .h classes of the >> Ricean propagation model within the simulator. I am working under windows >> (using Cygwin), and I have no .o file of the classes, I have put the >> classes >> in the mobile directory in ns, but when I am trying to compile them, a >> list >> of errors appears since many of the included classes (such as >> wireless_phy.h) is not exist in mobile directory. Then how can I include >> this class with ns-2? I have tried ./install (reinstall ns-2), also I >> have >> tried to run configure then make, but nothing work, and still there is no >> .o >> file generated nor NS-2 has added the new class. >> >> Please can anybody help me and give me simple instruction to that under >> windows ASAP? >> >> Thanx >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581 .html#a12597152 >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > > -- > Regards > -Ye > > > -- View this message in context: http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581 .html#a12620738 Sent from the ns-users mailing list archive at Nabble.com. --------------------------------- Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
