Re: [Flightgear-devel] Compile error in latest cvs

2003-03-25 Thread Gerhard Wesp
 hud.hxx:380: implicit declaration of function `int for_each(...)'

Is there any specific reason why you're using gcc 2.95.4?  It's *way*
old and has a less-than-satisfactory implementation of the standard
library.  This may well be related to the problem you're seeing.

for_each() is in namespace std, however IIRC this old g++ version had
the habit to ignore this fact...  Hmmm, is the correct header included
(I thinks its in algorithm)?

-Gerhard
-- 
| voice: +43 (0)676 6253725  ***  web: http://www.cosy.sbg.ac.at/~gwesp/
|
| Passts auf, seid's vuasichdig, und lossds eich nix gfoin!
|  -- Dr. Kurt Ostbahn

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


[Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Curtis L. Olson
I'm running gcc-2.95.4.  In the latest cvs, the compile bombs here:

make[3]: Entering directory `/home/curt/projects/FlightGear-0.9/FlightGear/src/Cockpit'
source='cockpit.cxx' object='cockpit.o' libtool=no \
depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \
depmode=gcc /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  
-I/usr/X11R6/include  -Wall -O2 -D_REENTRANT -c -o cockpit.o `test -f cockpit.cxx || 
echo './'`cockpit.cxx
In file included from cockpit.cxx:55:
hud.hxx: In method `void fgLineList::draw()':
hud.hxx:380: implicit declaration of function `int for_each(...)'
make[3]: *** [cockpit.o] Error 1

I'm flying out to Los Angeles this coming week and I *really* need to
have a working cvs build before I go  Am I the only one that is
seeing this problem?!?

Thanks,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread William L Riley
On Fri, 2003-03-21 at 12:57, Curtis L. Olson wrote:
 I'm running gcc-2.95.4.  In the latest cvs, the compile bombs here:
 
 make[3]: Entering directory 
 `/home/curt/projects/FlightGear-0.9/FlightGear/src/Cockpit'
 source='cockpit.cxx' object='cockpit.o' libtool=no \
 depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \
 depmode=gcc /bin/sh ../../depcomp \
 g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  
 -I/usr/X11R6/include  -Wall -O2 -D_REENTRANT -c -o cockpit.o `test -f cockpit.cxx || 
 echo './'`cockpit.cxx
 In file included from cockpit.cxx:55:
 hud.hxx: In method `void fgLineList::draw()':
 hud.hxx:380: implicit declaration of function `int for_each(...)'
 make[3]: *** [cockpit.o] Error 1
 
 I'm flying out to Los Angeles this coming week and I *really* need to
 have a working cvs build before I go  Am I the only one that is
 seeing this problem?!?

I did a fresh CVS checkout of plib, SimGear and fgfs and compiled about
11:00CST this morning. I didn't see this error then.

William

-- 
William L. Riley
[EMAIL PROTECTED]


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Frederic Bouvier
From: Curtis L. Olson :
 I'm running gcc-2.95.4.  In the latest cvs, the compile bombs here:

 make[3]: Entering directory
`/home/curt/projects/FlightGear-0.9/FlightGear/src/Cockpit'
 source='cockpit.cxx' object='cockpit.o' libtool=no \
 depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \
 depmode=gcc /bin/sh ../../depcomp \

++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  -I/usr/X
11R6/include  -Wall -O2 -D_REENTRANT -c -o cockpit.o `test -f cockpit.cxx ||
echo './'`cockpit.cxx
 In file included from cockpit.cxx:55:
 hud.hxx: In method `void fgLineList::draw()':
 hud.hxx:380: implicit declaration of function `int for_each(...)'
 make[3]: *** [cockpit.o] Error 1

 I'm flying out to Los Angeles this coming week and I *really* need to
 have a working cvs build before I go  Am I the only one that is
 seeing this problem?!?

Do you need SG_USING_STD( for_each ) ?

-Fred



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Curtis L. Olson
Frederic Bouvier writes:
 From: Curtis L. Olson :
  I'm running gcc-2.95.4.  In the latest cvs, the compile bombs here:
 
  make[3]: Entering directory
 `/home/curt/projects/FlightGear-0.9/FlightGear/src/Cockpit'
  source='cockpit.cxx' object='cockpit.o' libtool=no \
  depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \
  depmode=gcc /bin/sh ../../depcomp \
 
 ++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  -I/usr/X
 11R6/include  -Wall -O2 -D_REENTRANT -c -o cockpit.o `test -f cockpit.cxx ||
 echo './'`cockpit.cxx
  In file included from cockpit.cxx:55:
  hud.hxx: In method `void fgLineList::draw()':
  hud.hxx:380: implicit declaration of function `int for_each(...)'
  make[3]: *** [cockpit.o] Error 1
 
  I'm flying out to Los Angeles this coming week and I *really* need to
  have a working cvs build before I go  Am I the only one that is
  seeing this problem?!?
 
 Do you need SG_USING_STD( for_each ) ?

It looks like what I really needed was #include algorithm

Regards,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Frederic Bouvier
From: Curtis L. Olson :
 Frederic Bouvier writes:
  From: Curtis L. Olson :
   I'm running gcc-2.95.4.  In the latest cvs, the compile bombs here:
  
   make[3]: Entering directory
  `/home/curt/projects/FlightGear-0.9/FlightGear/src/Cockpit'
   source='cockpit.cxx' object='cockpit.o' libtool=no \
   depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \
   depmode=gcc /bin/sh ../../depcomp \
  
 
+ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  -I/usr/X
  11R6/include  -Wall -O2 -D_REENTRANT -c -o cockpit.o `test -f
cockpit.cxx ||
  echo './'`cockpit.cxx
   In file included from cockpit.cxx:55:
   hud.hxx: In method `void fgLineList::draw()':
   hud.hxx:380: implicit declaration of function `int for_each(...)'
   make[3]: *** [cockpit.o] Error 1
  
   I'm flying out to Los Angeles this coming week and I *really* need to
   have a working cvs build before I go  Am I the only one that is
   seeing this problem?!?
 
  Do you need SG_USING_STD( for_each ) ?

 It looks like what I really needed was #include algorithm

Now that I have updated CVS, I see the same thing with MSVC

-Fred



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Norman Vine
 Curtis L. Olson writes:
 
 I'm running gcc-2.95.4.  In the latest cvs, the compile bombs here:
 
 make[3]: Entering directory 
 `/home/curt/projects/FlightGear-0.9/FlightGear/src/Cockpit'
 source='cockpit.cxx' object='cockpit.o' libtool=no \
 depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \
 depmode=gcc /bin/sh ../../depcomp \
 g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. 
 -I../../src  -I/usr/X11R6/include  -Wall -O2 -D_REENTRANT -c -o 
 cockpit.o `test -f cockpit.cxx || echo './'`cockpit.cxx
 In file included from cockpit.cxx:55:
 hud.hxx: In method `void fgLineList::draw()':
 hud.hxx:380: implicit declaration of function `int for_each(...)'
 make[3]: *** [cockpit.o] Error 1

Deja view
http://www.menet.umn.edu/~curt/lists/fgfs/archive-200212/msg00169.html

Norman

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Curtis L. Olson
Norman Vine writes:
  Curtis L. Olson writes:
  
  I'm running gcc-2.95.4.  In the latest cvs, the compile bombs here:
  
  make[3]: Entering directory 
  `/home/curt/projects/FlightGear-0.9/FlightGear/src/Cockpit'
  source='cockpit.cxx' object='cockpit.o' libtool=no \
  depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \
  depmode=gcc /bin/sh ../../depcomp \
  g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. 
  -I../../src  -I/usr/X11R6/include  -Wall -O2 -D_REENTRANT -c -o 
  cockpit.o `test -f cockpit.cxx || echo './'`cockpit.cxx
  In file included from cockpit.cxx:55:
  hud.hxx: In method `void fgLineList::draw()':
  hud.hxx:380: implicit declaration of function `int for_each(...)'
  make[3]: *** [cockpit.o] Error 1
 
 Deja view
 http://www.menet.umn.edu/~curt/lists/fgfs/archive-200212/msg00169.html

Well in this case someone actually added a call to for_each() in
hud.hxx, but otherwise very similar symptoms.

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Frederic Bouvier
From: Frederic Bouvier [EMAIL PROTECTED]
 From: Curtis L. Olson :
  Frederic Bouvier writes:
   From: Curtis L. Olson :
I'm running gcc-2.95.4.  In the latest cvs, the compile bombs here:
   
make[3]: Entering directory
   `/home/curt/projects/FlightGear-0.9/FlightGear/src/Cockpit'
source='cockpit.cxx' object='cockpit.o' libtool=no \
depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \
depmode=gcc /bin/sh ../../depcomp \
   
  

 -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  -I/usr/X
   11R6/include  -Wall -O2 -D_REENTRANT -c -o cockpit.o `test -f
 cockpit.cxx ||
   echo './'`cockpit.cxx
In file included from cockpit.cxx:55:
hud.hxx: In method `void fgLineList::draw()':
hud.hxx:380: implicit declaration of function `int for_each(...)'
make[3]: *** [cockpit.o] Error 1
   
I'm flying out to Los Angeles this coming week and I *really* need
to
have a working cvs build before I go  Am I the only one that is
seeing this problem?!?
  
   Do you need SG_USING_STD( for_each ) ?
 
  It looks like what I really needed was #include algorithm

 Now that I have updated CVS, I see the same thing with MSVC

In fact, no, it is not the same. MSVC is having problem with
SG_USING_STD(for_each). There is already a SG_USING_NAMESPACE(std).

Could you please remove the line containing SG_USING_STD(for_each).

Thanks
-Fred



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Curtis L. Olson
Frederic Bouvier writes:
 In fact, no, it is not the same. MSVC is having problem with
 SG_USING_STD(for_each). There is already a SG_USING_NAMESPACE(std).
 
 Could you please remove the line containing SG_USING_STD(for_each).

Should all of the SG_USING_STD() lines be removed?  gcc-2.95.4 ignores
this directive so they don't affect me either way.

Regards,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Frederic Bouvier
From: Curtis L. Olson [EMAIL PROTECTED]

 Frederic Bouvier writes:
  In fact, no, it is not the same. MSVC is having problem with
  SG_USING_STD(for_each). There is already a SG_USING_NAMESPACE(std).
  
  Could you please remove the line containing SG_USING_STD(for_each).
 
 Should all of the SG_USING_STD() lines be removed?  gcc-2.95.4 ignores
 this directive so they don't affect me either way.

The other SG_USING_STD() lines are useless but are harmless. For MSVC,
you can remove all and keep SG_USING_NAMESPACE(std)

Thanks,
-Fred



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Compile error in latest cvs

2003-03-21 Thread Norman Vine
Curtis L. Olson writes:
 
 Norman Vine writes:
   Curtis L. Olson writes:
   
  
  Deja view
  http://www.menet.umn.edu/~curt/lists/fgfs/archive-200212/msg00169.html
 
 Well in this case someone actually added a call to for_each() in
 hud.hxx, but otherwise very similar symptoms.

Exactly this stems from the old patch of mine that Eric just added to have
both the 2D and the 3D HUDs.

The solution is the same now as then :-)

Cheers

Norman



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


[Flightgear-devel] compile error in latest cvs

2002-03-25 Thread Curtis L. Olson

David,

I'm getting a compile error in model.cxx with the latest cvs.  There
appears to be a mismatch between model.hxx and model.cxx.  Perhaps you
missed commiting changes in one or the other of these?  Here is the
error I'm seeing (gcc version 2.95.4 Debian):

c++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src
-I/usr/local/include -I/usr/X11R6/include
-DPKGLIBDIR=\/usr/local/lib/FlightGear\ -g -O2 -c -o model.o `test
-f model.cxx || echo './'`model.cxx
model.cxx: In method `void FGAircraftModel::init()':
model.cxx:108: no matching function for call to
`FGAircraftModel::read_animation (FGAircraftModel::Animation , const
char *, SGPropertyNode *)'
model.hxx:62: candidates are: struct FGAircraftModel::Animation
FGAircraftModel::read_animation(const string , const SGPropertyNode
*)
model.cxx: At top level:
model.cxx:235: prototype for `void
FGAircraftModel::read_animation(FGAircraftModel::Animation , const
string , const SGPropertyNode *)' does not match any in class
`FGAircraftModel'
model.hxx:62: candidate is: struct FGAircraftModel::Animation
FGAircraftModel::read_animation(const string , const SGPropertyNode
*)
model.cxx:341: definition of implicitly-declared
`FGAircraftModel::Animation::Animation()'
model.cxx:341: redefinition of
`FGAircraftModel::Animation::Animation()'
model.hxx:59: `FGAircraftModel::Animation::Animation()' previously
defined here
model.cxx:356: definition of implicitly-declared
`FGAircraftModel::Animation::~Animation()'
model.cxx:356: redefinition of
`FGAircraftModel::Animation::~Animation()'
model.hxx:59: `FGAircraftModel::Animation::~Animation()' previously
defined here
make[2]: *** [model.o] Error 1
make[2]: Leaving directory
`/home/curt/projects/FlightGear-0.7/FlightGear/src/Main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/curt/projects/FlightGear-0.7/FlightGear/src'
make: *** [all-recursive] Error 1

Thanks,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program   FlightGear Project
Twin Cities[EMAIL PROTECTED]  [EMAIL PROTECTED]
Minnesota  http://www.menet.umn.edu/~curt   http://www.flightgear.org

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] compile error in latest cvs

2002-03-25 Thread Jim Wilson

Let me clarify what I just said.  The bug is still there, but the program
otherwise builds and works :-)

Best,

Jim

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] compile error in latest cvs

2002-03-25 Thread David Megginson

Jim Wilson writes:

   I'm getting a compile error in model.cxx with the latest cvs.  There
  
  Same thing here. I sent the same message to David about an hour ago. If you 
  roll back the very last change in just model.cxx you can build and it works.

Fixed -- sorry about that.


All the best,


David

-- 
David Megginson
[EMAIL PROTECTED]


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel