John Wojnaroski a écrit :

Curtis L. Olson wrote:

John Wojnaroski wrote:

Hi Curtis,

When you have a moment. I may have sent this to you yesterday from one of my other machines, but can't find a copy. If a dup, my apologies.

In file included from ../../src/Cockpit/panel.hxx:50,
from ../../src/Cockpit/cockpit.hxx:36,
from main.cxx:61:
../../src/Input/input.hxx: In method `const class SGPropertyNode * FGBinding::getArg()':
../../src/Input/input.hxx:123: warning: choosing `SGPropertyNode_ptr::operator SGPropertyNode *()' over `SGPropertyNode_ptr::operator const SGPropertyNode *() const'
../../src/Input/input.hxx:123: warning: for conversion from `SGPropertyNode_ptr' to `const SGPropertyNode *'
../../src/Input/input.hxx:123: warning: because conversion sequence for the argument is better
main.cxx: In function `bool fgMainInit(int, char **)':
main.cxx:759: assuming & on overloaded member function
make[2]: *** [main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Kind of lost on this one...

Kind of lost on this one too ... I think this might be Andy Ross's code so he might be a good one to ask. What compiler version are you using?


Running 2.95.4...

Andy, if you're listening, any ideas. If this is due to using an older compiler, should there be a test in to check for that?

I tried the patch below with MSVC and it also compiles without any problem, so if it works with gcc 3.x and other compilers, I am to apply it.


RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/main.cxx,v
retrieving revision 1.190
diff -u -r1.190 main.cxx
--- main.cxx    16 Dec 2004 13:19:01 -0000    1.190
+++ main.cxx    20 Dec 2004 07:55:10 -0000
@@ -754,9 +754,9 @@

-    fgRegisterWindowResizeHandler( FGRenderer::resize );
-    fgRegisterIdleHandler( fgIdleFunction );
-    fgRegisterDrawHandler( FGRenderer::update );
+    fgRegisterWindowResizeHandler( &FGRenderer::resize );
+    fgRegisterIdleHandler( &fgIdleFunction );
+    fgRegisterDrawHandler( &FGRenderer::update );

    bool get_stencil_buffer = true;

_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] 2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to