Hi all,
I'm trying to get flightgear 9.8 built in Windows. I'm using MSVC 7
for the build. I ran into the following errors from the Nasal code.
start output
from the following code:-
static struct {
naCFunction func;
char* name;
} propfuncs[] = {
{ f_getType, _getType },
{ f_getName, _getName },
{ f_getIndex, _getIndex },
{ f_getValue, _getValue },
{ f_setValue, _setValue },
{ f_setIntValue, _setIntValue },
{ f_setBoolValue, _setBoolValue },
{ f_setDoubleValue, _setDoubleValue },
{ f_getParent, _getParent },
{ f_getChild, _getChild },
{ f_getChildren, _getChildren },
{ f_removeChild, _removeChild },
{ f_getNode, _getNode },
{ f_new, _new },
{ f_globals, _globals },
{ 0, 0 }
};
in nasal-props.cxx and
static struct { char* name; naCFunction func; } funcs[] = {
{ getprop, f_getprop },
{ setprop, f_setprop },
{ print, f_print },
{ _fgcommand, f_fgcommand },
{ settimer, f_settimer },
{ _cmdarg, f_cmdarg },
{ _interpolate, f_interpolate },
{ rand, f_rand },
{ 0, 0 }
};
in NasalSys.cxx
Compiling...
nasal-props.cxx
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(197)
: warning C4800: 'int' : forcing value to bool 'true' or 'false'
(performance warning)
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(217)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(218)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(219)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(220)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(221)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(222)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(223)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(224)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(225)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(226)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(227)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(228)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(229)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl
*)(naContext,naRef,int,naRef *)' to 'naCFunction'
None of the functions with this name in scope match the target type
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\nasal-props.cxx(230)
: error C2440: 'initializing' : cannot convert from 'naRef (__cdecl