游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1428|回复: 0

请教boost库编译问题

[复制链接]

17

主题

25

帖子

33

积分

注册会员

Rank: 2

积分
33
发表于 2007-12-11 13:14:00 | 显示全部楼层 |阅读模式
我在编译KlayGE引擎
这个引擎用到boost库

我已经编译4.1版本boost库了

在编译OPENGL 的时候 出现
>f:\游戏引擎\klayge\klayge_3_6_0\plugins\src\render\opengl\oglshaderobject.cpp(51) : error C2228: left of '.item0' must have class/struct/union
1>f:\游戏引擎\klayge\klayge_3_6_0\plugins\src\render\opengl\oglshaderobject.cpp(51) : error C2893: Failed to specialize function template 'disable_if<is_function<T>::type,boost::type_of::sizer<encode_type<V,T>::type>>::type boost::type_of::encode(const T &)'
1>        With the following template arguments:
1>        'boost::type_of::vector0<>'
1>        'KlayGE::OGLShaderObject::parameter_descs_t'
1>f:\游戏引擎\klayge\klayge_3_6_0\plugins\src\render\opengl\oglshaderobject.cpp(51) : error C2893: Failed to specialize function template 'enable_if<is_function<T>::type,boost::type_of::sizer<encode_type<V,T>::type>>::type boost::type_of::encode(T &)'
1>        With the following template arguments:
1>        'boost::type_of::vector0<>'
1>        'KlayGE::OGLShaderObject::parameter_descs_t'

这样的编译问题,请问我的boost库哪里设置 存在问题呢?

错误制定代码是BOOST_FOREACH 这个宏。
BOOST_FOREACH(BOOST_TYPEOF(param_descs_)::reference desc, param_descs_)

谢谢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-24 04:09

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表