FlightGear飞行模拟器
标题:
flight gear生成的project遇到问题
[打印本页]
作者:
沐筱柠
时间:
2016-5-27 09:18
标题:
flight gear生成的project遇到问题
错误 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
不知道是什么原因,代码是官网下载的,应该没什么问题,会不会是缺什么文件。。希望各位大神能指点下。
欢迎光临 FlightGear飞行模拟器 (http://flightgear.org.cn/)
Powered by Discuz! X3.2