Linux - Wireless Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-20-2011, 12:30 AM
|
#1
|
LQ Newbie
Registered: Mar 2011
Posts: 8
Rep:
|
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"
Last edited by savita1811; 03-20-2011 at 05:33 AM.
Reason: email address
|
|
|
03-21-2011, 10:42 PM
|
#3
|
LQ Newbie
Registered: Mar 2011
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
03-23-2011, 10:27 AM
|
#4
|
LQ Newbie
Registered: Mar 2011
Posts: 8
Original Poster
Rep:
|
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
|
|
|
03-25-2011, 07:43 AM
|
#6
|
LQ Newbie
Registered: Mar 2011
Posts: 8
Original Poster
Rep:
|
ok sir m trying my best to do it.Thank u again for giving me u r precious time
|
|
|
03-27-2011, 09:03 AM
|
#7
|
LQ Newbie
Registered: Mar 2011
Posts: 8
Original Poster
Rep:
|
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
|
|
|
03-28-2011, 10:33 PM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
...
Last edited by knudfl; 03-29-2011 at 07:43 AM.
|
|
|
03-29-2011, 07:48 AM
|
#9
|
LQ Newbie
Registered: Mar 2011
Posts: 8
Original Poster
Rep:
|
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"
|
|
|
03-29-2011, 08:01 AM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
03-29-2011, 09:35 AM
|
#11
|
LQ Newbie
Registered: Mar 2011
Posts: 8
Original Poster
Rep:
|
https://docs.google.com/leaf?id=0B30...MTE5Yjk3&hl=en,
https://docs.google.com/leaf?id=0B30...NDcwNWY4&hl=en,
https://docs.google.com/leaf?id=0B30...MjY2M2M5&hl=en,
https://docs.google.com/leaf?id=0B30...YjFkODkw&hl=en,
https://docs.google.com/leaf?id=0B30...OTgzZWJh&hl=en,
https://docs.google.com/leaf?id=0B30...OGQ3Y2Iz&hl=en,
https://docs.google.com/leaf?id=0B30...ZDE4ODlm&hl=en,
https://docs.google.com/leaf?id=0B30...ZTEwYWQy&hl=en,
https://docs.google.com/leaf?id=0B30...ZGRlMzVj&hl=en,
https://docs.google.com/leaf?id=0B30...OTgzZWJh&hl=en,
https://docs.google.com/leaf?id=0B30...YjFkODkw&hl=en,
https://docs.google.com/leaf?id=0B30...MjY2M2M5&hl=en,
https://docs.google.com/leaf?id=0B30...NDcwNWY4&hl=en,
https://docs.google.com/leaf?id=0B30...MTE5Yjk3&hl=en,
https://docs.google.com/leaf?id=0B30...NDExNzk5&hl=en,
https://docs.google.com/leaf?id=0B30...MGQxZDU5&hl=en,
https://docs.google.com/leaf?id=0B30...MjA0OTk2&hl=en,
https://docs.google.com/leaf?id=0B30...NmIzODAz&hl=en,
https://docs.google.com/leaf?id=0B30...MTU0Yjcw&hl=en,
https://docs.google.com/leaf?id=0B30...N2VkZGQy&hl=en ,
https://docs.google.com/leaf?id=0B30...MWQwYWY4&hl=en,
https://docs.google.com/leaf?id=0B30...YWEzMDc4&hl=en,
https://docs.google.com/leaf?id=0B30...MzhiODNm&hl=en,
https://docs.google.com/leaf?id=0B30...ODU0YTA1&hl=en,
https://docs.google.com/leaf?id=0B30...ZDQ1NzA5&hl=en,
https://docs.google.com/leaf?id=0B30...ZWRmNjFi&hl=en,
https://docs.google.com/leaf?id=0B30...YWNmODNj&hl=en,
https://docs.google.com/leaf?id=0B30...MDc0MTVi&hl=en,
https://docs.google.com/leaf?id=0B30...NjE0OGUy&hl=en,
https://docs.google.com/leaf?id=0B30...OGE3MGFi&hl=en.
here all the files are attached where antnet.tcl is the code
|
|
|
03-29-2011, 02:36 PM
|
#12
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
..
|
|
|
03-30-2011, 03:35 AM
|
#13
|
LQ Newbie
Registered: Mar 2011
Posts: 8
Original Poster
Rep:
|
here i had uploaded zip file for antnet
"https://docs.google.com/leaf?id=0B30Dk8kh-e_HZGVhMzI3YjktYmFkMy00OWYzLWE5OWUtMTBhOWMzNjE3MjYx&hl=en"
|
|
|
06-11-2011, 01:42 AM
|
#14
|
LQ Newbie
Registered: Jun 2010
Posts: 5
Rep:
|
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 07:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|