g-truc/glm

Quaternion error in MinGW

Closed this issue · 3 comments

Hi I got the following error while trying to compile a project using MinGW (it compiles under linux, Mac and visual studio 10 & 11).

....\include/glm/gtc/../gtc/quaternion.inl:513:52: error: 'pitch' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

....\include/glm/gtc/../gtc/quaternion.inl:513:52: error: 'yaw' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

....\include/glm/gtc/../gtc/quaternion.inl:513:52: error: 'roll' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

My code where the error is triggered looks like this:

glm::dvec3 tmpVal;

tmpVal = glm::eulerAngles( glm::quat_cast(mWorldTransform[i]) );

Where world transform is declared like this: glm::dmat4 mWorldTransform[2];

//Miro

The problem is that pitch, yaw and roll are defined in gtx but not in gtc.

I had a look at the problem and will work on a fix soon.

Thanks,
Christophe

This bug is fixed in GLM 0.9.4 branch.

Thanks for contributing!
Christophe