How To Run Myfirst - CC

You might also like

You are on page 1of 1

RUN MYFIRST.

CC

1. Get file “first.cc” in directory: ns-3.25/example/tutorial


2. Copy to folder: ns-3.25/scratch and rename file to be: “myfirst.cc”
Note: the file “.cc” will be run in folder “scratch”
3. Open file “myfirst.cc” using any text editor.
Example: gedit myfirst.cc
4. Congigure the file myfirst.cc as the figure below:

Bla blab la…….. and

5. Save
6. Compile. The command:
./waf – run scratch/myfirst

7. Run net anim


To run net anim, get in to directory netanim (usually in the directory NS-3.25/netanim), then run
the command:
./NetAnim

8. From the application netanim, find (browse) the file “myfirst.xml” (usuallya in directory ns-3.25).
Then run it.

You might also like