opengl中用轨迹球方法实现鼠标响应 glm库报错

budingningmeng 2012-11-16 03:54:10
说明:编译器用的是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库本身的原因吧,而且网上搜的一些方法,也都没有解决我的问题。
还请大家帮忙看看,谢谢~~~
...全文
136 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
timidsmile 2012-11-21
  • 打赏
  • 举报
回复
vs2010 vs vc6 的区别么?
budingningmeng 2012-11-21
  • 打赏
  • 举报
回复
好吧~~请别人帮忙解决了~~

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧