Closed ChenKangQiang closed 7 years ago
I cannot reproduce this error using OMNeT++ 5.1.1 on Linux and Veins' master branch. Have you tried the most recent revision or the pristine 4.5 release?
I use OMNet++ 5.1.1 in Windows,is it the problem?
I suppose the Windows toolchain is just more strict in this case and hence nobody has noticed this bug on other platforms before. In fact, casting a string (const char*) to long int should always fail. Since Veins sets the "address" parameter to "auto" by default, usually line 72 is executed. As a quick workaround you could simply remove lines 73 and 74.
Thank you ! I modify line 75 by myMacAddr = LAddress::L2Type(atol(addressString.c_str()))
, it seems OK!
@sommer please merge bug fix
Presumed fixed in Veins 4.6