OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000908OMNeT++simulation kernelpublic2015-10-12 10:052017-01-11 20:08
ammmar1988 
andras 
normalminoralways
resolvedfixed 
5.0b1 
5.0rc 
0000908: cenvir.h misses csimulation.h
cenvir.h misses csimulation.h include, though using ev macro defined in cenvir.h will result in error as long as csimulation.h is not included.

I guess this was not intended.
resolution:
add #include "csimulation.h" to cenvir.h
No tags attached.
Issue History
2015-10-12 10:05ammmar1988New Issue
2015-10-12 10:05ammmar1988Issue generated from: 0000856
2016-03-16 10:23andrasNote Added: 0001182
2016-03-16 10:23andrasStatusnew => resolved
2016-03-16 10:23andrasFixed in Version => 5.0rc
2016-03-16 10:23andrasResolutionopen => fixed
2016-03-16 10:23andrasAssigned To => andras

Notes
(0001114)
andras   
2015-03-12 20:10   
Why is this important? For simulation models, only <omnetpp.h> is public API, individual headers should be considered internal, and never be included directly.

BTW it's not so easy to fix, e.g. the suggested >>add #include "csimulation.h" to cenvir.h<< leads to compile error. Many headers contain inline methods (for performance reasons) that refer to classes in other headers, and this creates dependencies across headers that are difficult to resolve.
(0001182)
andras   
2016-03-16 10:23   
The "ev" macro is has been eliminated.