Error while running example of the veins in the la

2019-01-29 09:25发布

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

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

1条回答
萌系小妹纸
2楼-- · 2019-01-29 09:58

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

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

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.

查看更多
登录 后发表回答