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
*)(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(231)
: 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
NasalSys.cxx
g:\Flightgear_build\FlightGear\FlightGear\src\Scripting\NasalSys.cxx(283)
: 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\NasalSys.cxx(284)
: 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\NasalSys.cxx(285)
: 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\NasalSys.cxx(286)
: 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\NasalSys.cxx(287)
: 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\NasalSys.cxx(288)
: 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\NasalSys.cxx(289)
: 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\NasalSys.cxx(290)
: 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
<< end output
Is there anyway I can debug this?
I also had a problem where it said it couldn't find the moonpos.cxx
file. I deleted that file from the solution, but I'm not sure if I'll
run into problems when it starts linking flightgear.
Any help would be great!
Thank you.
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d