opengl中用轨迹球方法实现鼠标响应 glm库报错
说明:编译器用的是VC++6.0,工程框架是用的NEHE教程的框架。
想利用ArcBall方法实现鼠标响应,在加入glm库的时候,工程就运行不起来了,报错为
\vc98\include\glm\core\type_half.inl(271) : error C2039: '' : is not a member of 'half'
\vc\include\glm\core\type_half.hpp(45) : see declaration of 'half'
\vc98\include\glm\core\type_half.inl(274) : error C2270: '$S1' : modifiers not allowed on nonmember functions
\vc\include\glm\core\type_half.inl(326) : fatal error C1903: unable to recover from previous error(s); stopping compilation
执行 cl.exe 时出错.
但是同样的glm库,同样的源码在VS2010中运行是可以的。
我想这样的话,就应该不会glm库本身的原因吧,而且网上搜的一些方法,也都没有解决我的问题。
还请大家帮忙看看,谢谢~~~