Debugging NS3#U Can';t运行vanet-routing-compare.cc

Debugging NS3#U Can';t运行vanet-routing-compare.cc,debugging,ns-3,vehicle-routing,Debugging,Ns 3,Vehicle Routing,我是NS3的新手。我学习剧本。我试着用这些命令运行它(vanet-routing-compare.cc在scratch文件夹中) 但我对结果感到困惑。我收到以下错误消息 msg="Could not connect callback to /NodeList/*/DeviceList/*/ns3::WifiNetDevice/Phy/PhyTxDrop", file=../src/core/model/config.cc, line=920 terminate called

我是NS3的新手。我学习剧本。我试着用这些命令运行它(vanet-routing-compare.cc在scratch文件夹中)

但我对结果感到困惑。我收到以下错误消息

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 information (./waf --run <program> --gdb").

我很感激有谁能帮助我理解为什么会发生这种情况,以及我如何解决它。

我在3.31版中遇到了同样的错误,但3.30版还可以。也许你也可以试试3.30版。

我相信自从3.31版以来,名字从ns3::改为$ns3::

我使用的解决方法是从此处复制整个文件:


正如您所看到的,代码中几乎没有(不止几个)更改。

您的代码是什么?你到底想运行什么命令?谢谢你的关注@u new\u james。我编辑了我的问题,并添加了代码和运行它的命令的链接。你有什么建议吗?我相信你必须指定场景
/waf--run“vanet routing compare--scenario=1
(L84来自你共享的链接)@newjames我也试过了,但仍然存在同样的问题。我建议你将问题发布在
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 information (./waf --run <program> --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", file=../src/core/model/config.cc, 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 }