Error 1 error C2514: 'Idle' : class has no constructors d:\jacky\documents\visual studio 2010\projects\perfectsim\perfectsim\perfectsim\Objects\Objects.h 43 1 PerfectSimCode:activity = new Idle(this, NULL); class Idle : public Activity { private: float mTimeInIdle; public: Idle() : mTimeInIdle(0) { } Idle(Objects *actor, Goods *target) : Activity(actor, target) { }
The activity = new Idle(this, NULL) line is located inside the Objects::Objects(...) constructor.
Would it be caused by some cyclic dependencies? How do I go about resolving it?
Thanks
Jack




Reply With Quote