Error in Veins tutorial simulation

2019-09-19 16:40发布

I am starting to use Omnet++ with veins for VANET simulations, but at the end of the tutorial (http://veins.car2x.org/tutorial/), where it says to go into the IDE and click "Run As > OMNeT++ simulation",

an error occured :

Cannot evaluate parameter 'headerLength': (omnetpp::cDoubleParImpl)headerLength: Cannot cast from type double to integer - in module (Mac1609_4) RSUEXAMPLESCENARIO.rsu[0].nic.mac1609_4 (id=12), during network initialization.

Ok, it crash trying to cast int from double, but i don't know where and i can't fix that!

Thanks for answers

1条回答
Luminary・发光体
2楼-- · 2019-09-19 17:27

This has already been answered here : Error while running example of the veins in the last step of the installation

It was fixed in this commit. You can downgrade omnet++ as @Christoph Sommer suggested or you can try this workaround if you wanna stick to the last version. It should work since I had the same exact problem (using a recent version of omnet++).

Best regards.

查看更多
登录 后发表回答