This post is mostly reporting a documentation issue (at least, I think it is..) for the beta release of OMNeT++.
I'm trying to compile veins against the recent OMNeT++ beta release (mostly to ensure forward compatibility). One of the problems I'm currently stuck at is the fact that, as written in the release notes:
However, replacing "ev" with getEnvir() doesn't work in all cases; in particular, it doesn't work in code where it is used to generate output, like so: ev << "My Output"
I checked the user manual at this point, and saw that the hello world example there still generates output this way, as well as most other places I could find. This should probably be updated, because I tried grepping through all the examples in the /samples directory of the omnetpp code, but none of those seem to write output with ev <<. After realizing that the tictoc tutorial must also use this output method, I found that it uses:
EV << "Sending initial message\n";
Which, as it turns out, seems to compile (at least, there are other compilation problems now). I checked the api doc; this definition comes from "Logging to the default category" (/doc/api//group__LoggingDefault.html), and this seems to be global. I'm not sure what the correct fix is -- should everything use EV for output, or should getEnvir() be used in some way?