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 02:21 AM.
|