simulation not defined in this module.OMNETPP error

7 views
Skip to first unread message

Yogendra Sharma

unread,
Mar 18, 2018, 3:00:33 AM3/18/18
to OMNeT++ Users
1 class BloreStatisticsAccess
2 {
3 public:
4 BloreStatisticsAccess() {
5 }
6 BloreStatistics* getIfExists() {
7 return dynamic_cast<BloreStatistics*>(simulation.getModuleByPath("stats"));
8 }
9 };
10 #endif

 i am getting error at line number 7 as simulation not defined in this module.please help me to resolve this error ASAP.
Reply all
Reply to author
Forward
0 new messages