Bugzilla – Bug 636
src/core should not depend on src/simulator
Last modified: 2009-09-29 01:00:59 UTC
names.cc now includes simulator.h: this should not happen because src/core is not supposed to be using the simulator module directly. It's supposed to be the other way around. There are a couple of options: 1) move this code in common which depends on both core and simulator 2) find a way to make names.cc not depend on simulator.h anymore I can't think of other options for now.
It looks like this include is used only for the line 127: Simulator::ScheduleDestroy (&NamesPriv::Delete); I think the second option should be more acceptable. If we remove this line we can remove this include. Now we should see what is the use of this line of code and if we can do the same in another way. Regards Faker
The NamesPriv object just needs to be made a proper singleton that is constructed once at first use and destructed at the end of time.