问题描述
我是NS3的新手。我研究了vanet-routing-compair.cc脚本。我试图通过这些命令运行它(vanet-routing-compare.cc在临时文件夹中)。
./waf --run scratch/vanet-routing-compare
./waf --run "vanet-routing-compare --scenario=1 --saveconfig=scenario1.txt"
但是我对结果感到困惑。我收到以下错误消息。
msg="Could not connect callback to /NodeList/*/DeviceList/*/ns3::WifiNetDevice/Phy/PhyTxDrop",file=../src/core/model/config.cc,line=920 terminate called without an active exception
Command ['/home/azra/Desktop/ns-allinone-3.31/ns-3.31/build/scratch/vanet-routing-compare'] terminated with signal SIGIOT. Run it under a debugger to get more @R_857_4045@ion (./waf --run <program> --gdb").
通过使用gdb调试器,我看到此消息。
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/azra/Desktop/ns-allinone-3.31/ns-3.31/build/scratch/vanet-routing- compare --scenario=1 --saveconfig=scenario1.txt
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
msg="Could not connect callback to /NodeList/*/DeviceList/*/ns3::WifiNetDevice /Phy/PhyTxDrop",line=920
terminate called without an active exception
Program received signal SIGABRT,Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 }
我感谢谁能帮助我理解为什么会这样以及如何解决。
解决方法
我在3.31版中遇到了相同的错误,但是3.30版可以。也许您也可以尝试3.30版。
,我相信从 3.31 版本开始,名称从 ns3:: 更改为 $ns3::
https://groups.google.com/g/ns-3-users/c/VWTV9ZdY7fs/m/MxRdIoLoAAAJ[Here][1]
我使用的解决方法是从这里复制整个文件:gitlab of ns3 development branch
如您所见,代码中的更改很少(不止一些)。