Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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"
Last edited by savita1811; 03-20-2011 at 05:33 AM.
Reason: email address
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
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
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.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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"
.. 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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.