I am cross-compiling a project from MSVC2010 to GCC 4.7 .Each place where I call base class constructor like this :
FPSCamera::FPSCamera(CameraType camType, float fov, int viewportW, int viewportH, float nearPlane, float farPlane)
{
Camera3D::Camera3D( camType, fov, viewportW, viewportH, nearPlane, farPlane);
}
I am getting in GCC :
CANNOT CALL CONSTRUCTOR DIRECTLY
MSVC doesn't complain ... This way the error is fixed:
FPSCamera::FPSCamera(CameraType camType, float fov, int viewportW, int viewportH, float nearPlane, float farPlane)
:Camera3D( camType, fov, viewportW, viewportH, nearPlane, farPlane);
{
}
Why?