在安装的最后一步中运行静脉示例时出错 [英] Error while running example of the veins in the last step of the installation

查看:41
本文介绍了在安装的最后一步中运行静脉示例时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据站点的说明进行静脉的安装( http://veins.car2x. org/tutorial/),但在最后一步中,当执行静脉示例的omnetpp.ini时,代码会编译,但在qtnev中执行会产生以下错误: 请帮助我

did the installation of the veins according to the tutorial of the site (http://veins.car2x.org/tutorial/) using the operating system windows 10, but in the last step, when executing the omnetpp.ini of the example of the veins the code compiles but the execution in qtnev gives the following error: Help me please

无法评估参数"headerLength": (omnetpp :: cDoubleParlmpl)headerLength:无法从double类型转换为 整数–模块中(Mac1609_4) RSUExampleScenario.rsu [0] .nic.mac1609_4(id = 12),在网络期间 初始化

Cannot evaluate parameter ‘headerLength’: (omnetpp::cDoubleParlmpl)headerLength: Cannot cast from type double to integer – in module (Mac1609_4) RSUExampleScenario.rsu[0].nic.mac1609_4 (id=12), during network initialization

推荐答案

这是在OMNeT ++的最新版本中引入的,该版本不再允许将double参数隐式转换为整数值.

This was introduced in a recent version of OMNeT++, which no longer allows implicit conversion of double parameters to integer values.

也已在OMNeT ++邮件列表上 报道了此问题

This issue has also been reported on the OMNeT++ mailing list.

如您所见,它已在此提交中修复.这可能会包含在下一个Veins版本中.在此之前,您可以按照邮件列表上的建议进行操作,并使用存储库中的Veins,甚至可以将单个相关补丁应用到您拥有的来源上.

As you can see, it was fixed in this commit. This might be included in the next Veins release. Until then, you can follow the advice given on the mailing list, and use Veins from the repository, or even just apply the single related patch on the sources you have.

这篇关于在安装的最后一步中运行静脉示例时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆