The simulator uses PkgConfig
to load NS-3 libraries.
CMake will automatically download the spdlog repository to build/_deps
.
First, modify lines 43 and 45 to specify the ns-3 include path and pkgconfig path.
Second, export CXX_COMPILER_PATH
to specify the C++ compiler that supports C++ 20.
mkdir build && cd build
cmake ..
make
bin
is the execution output folder. Run
../bin/main
to start the network simulation.