美文网首页
NS-3编程

NS-3编程

作者: Cabcab | 来源:发表于2018-11-12 16:27 被阅读0次

.cc文件需要在.../ns-3.26/scratch目录下
退出,回到ns-3.26目录,打开终端:
运行

./waf

看到输出类似:

Waf: Entering directory `.../ns-3.26/build'
[ 943/2483] Compiling scratch/first.cc
[ 944/2483] Compiling scratch/subdir/scratch-simulator-subdir.cc
[ 945/2483] Compiling scratch/scratch-simulator.cc
[2467/2483] Linking build/scratch/scratch-simulator
[2468/2483] Linking build/scratch/subdir/subdir
[2471/2483] Linking build/scratch/first
Waf: Leaving directory `.../ns-3.26/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (38.579s)
Modules built:
antenna                   aodv                      applications              
bridge                    buildings                 config-store              
core                      csma                      csma-layout               
dsdv                      dsr                       energy                    
fd-net-device             flow-monitor              internet                  
internet-apps             lr-wpan                   lte                       
mesh                      mobility                  mpi                       
netanim (no Python)       network                   nix-vector-routing        
olsr                      point-to-point            point-to-point-layout     
propagation               sixlowpan                 spectrum                  
stats                     tap-bridge                test (no Python)          
topology-read             traffic-control           uan                       
virtual-net-device        wave                      wifi                      
wimax                     

Modules not built (see ns-3 tutorial for explanation):
brite                     click                     openflow                  
visualizer

编译成功
重点:'build' finished successfully
运行:

./waf --run scratch/NAME

即可


Reference

相关文章

  • NS-3编程

    .cc文件需要在.../ns-3.26/scratch目录下退出,回到ns-3.26目录,打开终端:运行 看到输出...

  • NS3 Callback内容翻译

    以下内容为NS3官方文档翻译。 1.5 Callbacks 回调某些 ns-3 的新手对代码中广泛使用的编程习惯不...

  • NS-3 简介

    ns-3模拟器是一个离散事件网络模拟器,主要用于研究和教育用途。 ns-3项目始于2006年,是一个开发ns-3的...

  • 在ns-3中如何动态调整瓶颈链路带宽

    ns-3的tutorial和安装完ns-3后,目录example下给的例子,都是预先设定好channel的band...

  • NS-TRACING

    TRACING The *ns-3 *tracing system is built on the concept...

  • NS3学习--dynamic-global-routing

    一、学习工具: 1. 参考资源: a.《ns-3网络模拟器基础及应用》 b. NS-3中文手册 c. NS3官网...

  • Internet Stack

    Internet stack aggregation ns-3源代码目录src / internet提供TCP /...

  • NS3-ENERGY FRAMEWORK

    为无线网写的ENERGY模型 The ns-3 Energy Framework is composed of 3...

  • ns-3资料链接整理

    示例代码 ns-3官网: rip-simple-network.cc simple-global-routing....

  • NS-3安装

    Ubuntu 16.04安装顺利,Ubuntu 18.04不成功。NS-3和Ubuntu 16.04更配哦 下载安...

网友评论

      本文标题:NS-3编程

      本文链接:https://www.haomeiwen.com/subject/tgccfqtx.html