I am having a class named EFX_Camera defined like this:
The EFX_VECTOR3 is a class with a constructor EFX_VECTOR3(float x, float y, float z) that passes the parameters values in the class member variables f_x, f_y, f_z.Code:struct EFX_CameraSystem { EFX_VECTOR3 position; EFX_VECTOR3 lookat; }; class EFX_Camera { public: void SetPosition(EFX_VECTOR3 Pos); void SetLookAt(EFX_VECTOR3 LookAt); private: EFX_CameraSystem system; };
But I get the error EFX_Camera no approproate default constructor available. (VC++6)
I do not need a constructor for this, but even if I add one, I get this error: EFX_CameraSystem no appropriate constructor available.
Please help, I do not know how to fix this. It is weird.



LinkBack URL
About LinkBacks


