I've committed made four small ANSI C++ fixes to the CVS to allow
FlightGear to compile with G++ 3.0.3.  I'd appreciate it if porters
could confirm that the changes don't break any legacy compilers.

I think it's generally a good thing for developers to use G++ 3.x,
since it is very picky about ANSI C++ conformance and will catch
errors that might trip up ports to other platforms (such as sloppy use
of the std:: namespace).  The downside is that G++ 3.x uses different
C++ name mangling than G++ 2.95, so you have to recompile any C++ (but
not C) libraries you're using.

To ensure that you're using G** 3.x, set the CC
and CXX environment variables in you ~/.bash_profile (or wherever):

  export CC=gcc-3.0
  export CXX=gxx-3.0

Do that *before* you run configure.

For FlightGear, you have to recompile plib, Metakit, and SimGear (in
more-or-less that order) before you recompile FlightGear.  Do at least
a

  make clean; rm -f config.cache; configure

on each one first (making sure that CC and CXX are set as above
first).


All the best,


David

-- 
David Megginson
[EMAIL PROTECTED]

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

Reply via email to