1

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

CertainPerformance
  • 356,069
  • 52
  • 309
  • 320

1 Answers1

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.

Barnercart
  • 1,523
  • 1
  • 11
  • 23