OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000816OMNeT++simulation kernelpublic2015-03-06 16:542017-01-11 20:07
till 
andras 
normalminoralways
resolvedfixed 
5.0b1 
 
0000816: 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-03-06 16:54tillNew Issue
2015-03-12 20:10andrasNote Added: 0000990
2015-10-12 09:28ammmar1988Issue cloned: 0000856
2016-03-16 10:45andrasNote Added: 0001191
2016-03-16 10:45andrasStatusnew => resolved
2016-03-16 10:45andrasResolutionopen => fixed
2016-03-16 10:45andrasAssigned To => andras

Notes
(0000990)
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.
(0001191)
andras   
2016-03-16 10:45   
The "ev" macro has been removed.