Reinstalled GLM...warnings and missing functions?

Hi
I recently reformatted and re-installed my IDE (MS Visual C++) and now I’m getting a large number of compiler warnings that I didn’t get previously when including glm.hpp.

My solution so far has been to disable the warnings before including the header, and then enabling them again right after.

But now I found that glm::gtc cannot find the functions for matrix_projection.

Any idea if this is maybe a change in glm since I last installed (sometime earlier this year)?

It seems that you were still using GLM 0.8.X which is not backward compatible with the most recent versions (0.9.X).

What are your warnings?

It looks like a couple only occur once with glm::detail::ieee754_QNAN but some of them occur many times (these are just examples).

I found that matrix_projection is now part of matrix_transform so it was probably an old version I was using. I seem to remember maybe disabling error 4201 so these new errors might just be from the new version.

d:\program files\microsoft visual studio 9.0\vc\include\glm\core ype_vec2.hpp(58) : warning C4201: nonstandard extension used : nameless struct/union

d:\program files\microsoft visual studio 9.0\vc\include\glm\gtx\string_cast.inl(27) : warning C4996: ‘vsprintf’: This function or variable may be unsafe.

d:\program files\microsoft visual studio 9.0\vc\include\glm\gtx\ulp.inl(79) : warning C4127: conditional expression is constant

d:\program files\microsoft visual studio 9.0\vc\include\glm\core\intrinsic_common.inl(19) : warning C4510: ‘glm::detail::ieee754_QNAN::<unnamed-tag>’ : default constructor could not be generated

d:\program files\microsoft visual studio 9.0\vc\include\glm\core\intrinsic_common.inl(19) : warning C4512: ‘glm::detail::ieee754_QNAN::<unnamed-tag>’ : assignment operator could not be generated

d:\program files\microsoft visual studio 9.0\vc\include\glm\core\intrinsic_common.inl(19) : warning C4610: struct ‘glm::detail::ieee754_QNAN::<unnamed-tag>’ can never be instantiated - user defined constructor required

d:\program files\microsoft visual studio 9.0\vc\include\glm\core\intrinsic_common.inl(173) : warning C4100: ‘v’ : unreferenced formal parameter

d:\program files\microsoft visual studio 9.0\vc\include\glm\core\intrinsic_matrix.inl(206) : warning C4189: ‘stop’ : local variable is initialized but not referenced

It seems that you have disable Visual C++ extensions which generates these errors.

Except for “warning C4996: ‘vsprintf’: This function or variable may be unsafe.”, the problems have been fixed for next release, GLM 0.9.2.1.