The header files imported before the program (also a series of header files combined with the module header files) are placed under ../build/debug/NS3.
First, we will introduce a simple method to allow examples and tests:
$./WAF configure -- enable-examples -- enable-Tests
$./WAF build
1. When build. py is run at one time
Forbidden: $./build. py
Allowed: $./build. py -- enable-examples -- enable-Tests
2. Run build with WAF for the first time
Forbidden:
$./WAF configure
$./WAF build
Allowed:
$./WAF configure -- enable-examples -- enable-Tests
$./WAF build
A file records the default configuration information and can modify its default parameters, that is, whether examples and tests are activated or locked by default:
File Name: utils/. ns3rc File $ Vim. ns3rc
Forbidden: # Set this equal to true if you want examples to be run.
Examples_enabled = false
# Set this equal to true if you want tests to be run.
Tests_enabled = false
Allowed:
# Set this equal to true if you want examples to be run.
Examples_enabled = true
# Set this equal to true if you want tests to be run.
Tests_enabled = true
After configuring the good luck environment, you can run it in the following ways:
./WAF -- run yourprogram // yourprogram. CC
./WAF -- pyrun yourprogram. py
Debug program:
./WAF -- run yourprogram -- command-template = "GDB % s"
The compiled executable file is stored in the directory.../debug/example/.... You can view it on your own.
You can directly run your own programs in the scratch/directory, and run the program configuration in other directories,
No relevant information is found. If you have any knowledge about the relevant materials or links, you can add them after learning.