antnet algorithm execution problem
hi i m doing my project on ant routing algorithm in ns2.33,i had made changes to almost every file.
but when i tried to run the algorithm the error i get is like this "invalid command name "Agent/Antnet" while executing "Agent/Antnet create _o386 0" invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Agent/Antnet $i" ("for" body line 2) invoked from within "for {set i 0} {$i < $sz} {incr i} { set nn($i) [ new Agent/Antnet $i] }" please tell me what shuold i do?is there any need for changes in makefile or any other files.plz i u had a soln plz mail me immediately its urgent!!!! "suvarnapatil.40@gmail.com" |
Welcome to LQ.
Assume antnet-1.0.tgz > antnet/ , or similar http://antalgorithm.googlecode.com/files/antnet.tar.gz cd ns-allinone-2.33/ns-2.33 && cp Makefile Makefile-back && make clean The Makefile ( or Makefile.in ) edits : Add to section OBJ_CC : antnet/antnet.o antnet/antnet_common.o antnet/antnet_rtable.o ... and then run make. Please read http://www.linuxquestions.org/linux/rules.html And http://linuxsilo.net/docs/smart-questions_en.html http://www.linuxquestions.org/linux/...Ask_a_Question All technical discussion is meant to take place in the Forums, so everybody can benefit from the answers. Hence no technical emails. Using the word 'urgent' is not very polite : Here we are all volunteers, answering questions in our spare time. .. |
Thank u very much knudfl for giving u r precious time to solve my problm.
I m really sorry for using the word "urgent".Actually i m new to this site ,dats y i dont know. |
I had made changes as specified by u in makefile.in ,but after "./configure" and "make" it is again giving same error of "invalid command name Agent/Antnet".plz suggest me the changes that i should do
|
Difficult to say where the errors are, if you made a lot of edits.
These are the links I found two days ago. Besides that : Never heard of it before. https://antnet.wordpress.com/ http://antalgorithm.googlecode.com/f...tnetmanual.pdf http://www.idsia.ch/~gianni/antnet.html http://code.google.com/p/antalgorithm/ One thing : If you run ./configure, the Makefile will change. './configure' should only be used, if you have added something to Makefile.in . But according to post # 4, that seems to be OK. .. |
ok sir m trying my best to do it.Thank u again for giving me u r precious time
|
i had made changes in makefile and by running "make",it is giving error that "antnet/antnet.cc- Antnet::Antnet(addr_t id) : Agent(PT_ANT),....... "PT_ANT" is not declared in its scope and same error in recv function,send function of antnet.cc file
|
Suggest : Upload the edited files to Google Docs /// Shared.
Include folders with the right names, or a description of file location. Copy all files and folders into a <new-folder> ( antnet-files/ ) tar -zcf antnet-files.tar.gz antnet-files/ ... and it's ready for upload. ... |
hi sir i had uploaded all the files along with code antnet.tcl on google docs with public access on web.
the link is "https://docs.google.com/leaf?id=0B30Dk8kh-e_HMDRmYTE2YTktYjIyNy00MmY0LWE2MTUtYWJjN2NkOGE3MGFi&hl=en" and email id="suvarnapatil.40@gmail.com" |
The link
https://docs.google.com/leaf?id=0B30...OGE3MGFi&hl=en .. is for antnet.h only. You told in post #1, that a lot of edits were made. Please pack up all the edited files into a ".tar.gz" like mentioned in # 8. |
I guess, the files belong to certain folders.
Please pack all the files into the right folders, and afterwards into a top directory. And do tar -zcf etc. etc. See post # 8. Then I may have a look at things. I don't think you'd appreciate getting applications in all loose parts. .. |
here i had uploaded zip file for antnet
"https://docs.google.com/leaf?id=0B30Dk8kh-e_HZGVhMzI3YjktYmFkMy00OWYzLWE5OWUtMTBhOWMzNjE3MjYx&hl=en" |
hello
I had that error in post #1. according to post#2, I change makefile.in and make clean. now when i run make i have this error. "Makefile:163: *** commands commence before first target. stop." I need your help. please help me. Thanks sorry for my bad english. |
All times are GMT -5. The time now is 03:47 PM. |