Error in Veins tutorial simulation

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:28:36

问题


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:


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.



来源:https://stackoverflow.com/questions/50366328/error-in-veins-tutorial-simulation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!