LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2011, 03:13 AM   #1
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
help in my code !!


hii
i have the code for a mesh network and simulate using ns3.i am trying to get the flow monitor on the console so that i get information about the packets and through.i have made some changes in the code but i get certain errors like this when i give the command

./waf --run "scratch/mesh --x-size=3 --y-size=3 --step=100 --time=100 --packet-interval=0.001 --packet-size=1024 --interfaces=1 --pcap=0 --myfilename=Flowmon --datarate=1000" --visualize

this is what i get

Waf: Entering directory `/home/cpu56/ns-allinone-3.11/ns-3.11/build'
[ 584/1186] cxx: scratch/mesh.cc -> build/debug/scratch/mesh_15.o
../scratch/mesh.cc: In member function ‘void MeshTest::Configure(int, char**)’:
../scratch/mesh.cc:148: error: ‘myfilename’ was not declared in this scope
../scratch/mesh.cc:149: error: ‘datarate’ was not declared in this scope
../scratch/mesh.cc: In function ‘int main(int, char**)’:
../scratch/mesh.cc:295: error: ‘myofile’ was not declared in this scope
../scratch/mesh.cc:295: error: ‘myfilename’ was not declared in this scope
../scratch/mesh.cc:297: error: ‘monitor’ was not declared in this scope
../scratch/mesh.cc:297: error: ‘m_totalTime’ was not declared in this scope
../scratch/mesh.cc:299: error: ‘flowmon’ was not declared in this scope
../scratch/mesh.cc:316: error: ‘m_xsize’ was not declared in this scope
../scratch/mesh.cc:316: error: ‘m_ysize’ was not declared in this scope
../scratch/mesh.cc:316: error: ‘m_packetSize’ was not declared in this scope
Waf: Leaving directory `/home/cpu56/ns-allinone-3.11/ns-3.11/build'
Build failed: -> task failed (err #1):
{task: cxx mesh.cc -> mesh_15.o}

i am attaching the mesh.cc file .if someone can help me point out the mistake it would be great.thanks

Last edited by shanky; 11-03-2011 at 03:21 AM.
 
Old 11-03-2011, 03:17 AM   #2
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
sorry for to attach the code in previous post..this is the one
Attached Files
File Type: txt meshcode.txt (10.5 KB, 7 views)
 
Old 11-03-2011, 05:58 AM   #3
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
hiii
i've made certain changes in the script and now i do not get any
error ,compilation takes place but there is no sign of any
flowmon ,the .xml files are generated though.some one please take a
look at my script and help me out..Its a little important for my
project and i am racing against a deadline .thanks a lot
please take a look at the modified code i have written to get results
Attached Files
File Type: txt modified.txt (9.9 KB, 7 views)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Small matlab code to convert Morse code to plaintext using regular expressions gregorian Programming 3 03-31-2010 01:34 PM
Error in Perl Code : Bad switch statement(Problem in code block)? near ## line # suyog255 Programming 4 02-20-2008 06:35 PM
small syntax problem with C code (implemented in Code Composer Studio) illiniguy3043 Programming 6 01-07-2008 03:14 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM


All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration