QQ登录

只需一步,快速开始

查看: 4475|回复: 0
打印 上一主题 下一主题

flight gear生成的project遇到问题

[复制链接]

主题

好友

16

积分

报考学院待录取

跳转到指定楼层
楼主
发表于 2016-5-27 09:18:37 |只看该作者 |倒序浏览
错误        1396        error C2039: “_display_factor”: 不是“HUD::Input”的成员       
错误        928        error C2039: “_input”: 不是“HUD::Input”的成员       
错误        931        error C2039: “_input”: 不是“HUD::Input”的成员       
错误        970        error C2039: “_major_divs”: 不是“HUD::Input”的成员       
报错是这样的,下面有好多条都是这样的。
这个是对应第一条问题的代码。
#include "HUD.hxx"
#include "HUD_private.hxx"

HUD::Scale::Scale( HUD *hud, const SGPropertyNode *n, float x, float y) :
    Item(hud, n, x, y),
    _input(n->getNode("input", false)),
    _major_divs(n->getFloatValue("major-divisions")),
    _minor_divs(n->getFloatValue("minor-divisions")),
    _modulo(n->getIntValue("modulo"))
{
    if (n->hasValue("display-span"))
        _range_shown = n->getFloatValue("display-span");
    else
        _range_shown = _input.max() - _input.min();

    _display_factor = get_span() / _range_shown;
    if (_range_shown < 0)
        _range_shown = -_range_shown;

}

对应的HUD的文件夹里的文件有这些:
HUD.cxx
HUD.hxx
HUD_dial.cxx
HUD_gauge.cxx
HUD_instrument.cxx
HUD_label.cxx
HUD_ladder.cxx
HUD_misc.cxx
HUD_private.hxx
HUD_runway.cxx
HUD_scale.cxx
HUD_tape.cxx
HUD_tbi.cxx

不知道是什么原因,代码是官网下载的,应该没什么问题,会不会是缺什么文件。。希望各位大神能指点下。
分享到: QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
分享分享0 收藏收藏0
您需要登录后才可以回帖 登录 | 加入FG

本版积分规则

手机版|联系我们| FlightGear ( 吉ICP备19002044号-7 )

GMT+8, 2024-5-6 00:09

Powered by Discuz! X3.2

© 2001-2013 FlightGear Inc.

返回顶部