Hello,

I just wanna say that I've got the same problem with gcc 3.3.3 when trying to compile...(using Cygwin too) and don't know how to fix this problem... sorry!

Loc


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Date: Wed, 30 May 2007 14:35:09 +0100
From: "Laurence Homer" <L.Homer-02@student.lboro.ac.uk >
Subject: Re: [Flightgear-devel] Cygwin Error when compiling 0.9.11pre1
To: "'FlightGear developers discussions'"
       < flightgear-devel@lists.sourceforge.net>
Message-ID: <E1HtOL7-0005ff-DW@mail.sourceforge.net>
Content-Type: text/plain; charset="us-ascii"

Hey,



Just wondered if anybody had any ideas yet about the problem I mailed out
below about building the new FlightGear version (it happens with both the
0.9.11pre1 and the cvs versions)



I've since discovered that 3.4.4 seems to be the latest gcc version for
Cygwin, so I'm not really sure what the problem is, or where to start?



Any pointers would be great.



Cheers,



Laurence



--------------------

Hi all,



I'm having a go at compiling the new 0.9.11-pre1 version of FlightGear, and
I'm coming across a few errors.



I've checked I have all the pre-requisites (and installed the new SimGear)
and fixed one error I got from 'groundnetworks.cxx' which was complaining
about 'HUGE' not being defined, I changed this to 'HUGE_VAL' based on the
rest of the file, and that seemed to fix it.



But now, I am getting an error that seems to relate to gcc and its include
files. I've put the error printout at the bottom (its quite long, so I have
chopped it down a bit..)



Is there some kind of new gcc version or something that I need?? as I have
been compiling 0.9.10 with cygwin without problems for a while and this
error seems ot be suggesting there is a problem with the gcc include file,
Or is this error pointing to something else?



Any help much appreciated,



Cheers,



Loz



Making install in Environment

make[2]: Entering directory
`/cygdrive/c/cygwin/usr/local
/Source/FlightGear-0.9.11-pre1/src/Environment'

if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src
-I/usr/local/include  -g -O2 -D_REENTRANT -MT fgmetar.o -MD -MP -MF
".deps/fgmetar.Tpo"

-c -o fgmetar.o fgmetar.cxx; \

       then mv -f ".deps/fgmetar.Tpo" ".deps/fgmetar.Po"; else rm -f
".deps/fgmetar.Tpo"; exit 1; fi

In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/streambuf:781,

                from /usr/local/include/simgear/debug/logstream.hxx:35,

                from ../../src/Main/fg_props.hxx:9,

                from fgmetar.cxx:38:

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/streambuf.tcc: In member
function `virtual std::streamsize std::basic_streambuf<_CharT,
_Traits>::xsgetn(_Cha

rT*, std::streamsize)':

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/streambuf.tcc:54: error:
expected unqualified-id before '(' token

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/streambuf.tcc: In member
function `virtual std::streamsize std::basic_streambuf<_CharT,
_Traits>::xsputn(cons

t _CharT*, std::streamsize)':

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/streambuf.tcc:88: error:
expected unqualified-id before '(' token

In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/locale:47,

                from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ostream.tcc:40,

                from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ostream:545,

                from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:45,

                from /usr/local/include/simgear/debug/logstream.hxx:36,

                from ../../src/Main/fg_props.hxx:9,

                from fgmetar.cxx:38:

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:514:57:
macro "min" requires 2 arguments, but only 1 given

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:563:57:
macro "max" requires 2 arguments, but only 1 given

In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/locale:47,

                from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ostream.tcc:40,

                from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ostream:545,

                from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:45,

                from /usr/local/include/simgear/debug/logstream.hxx:36,

                from ../../src/Main/fg_props.hxx:9,

                from fgmetar.cxx:38:



. large error chunk cut out here.



/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:147: error:
ISO C++ forbids comparison between pointer and integer

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:147: error:
ISO C++ forbids comparison between pointer and integer

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:199:34: macro
"min" requires 2 arguments, but only 1 given

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:200:44: macro
"max" requires 2 arguments, but only 1 given

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc: In member
function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::op

erator>>(int&)':

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:200: error:
ISO C++ forbids comparison between pointer and integer

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:200: error:
ISO C++ forbids comparison between pointer and integer

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc: In member
function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::ge

tline(_CharT*, std::streamsize, _CharT)':

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:599: error:
expected unqualified-id before '(' token

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:660:51: macro
"max" requires 2 arguments, but only 1 given

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc: In member
function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::ig

nore(std::streamsize, typename _Traits::int_type)':

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:660: error:
ISO C++ forbids comparison between pointer and integer

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc: In member
function `std::streamsize std::basic_istream<_CharT,
_Traits>::readsome(_CharT*, std::

streamsize)':

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:744: error:
expected unqualified-id before '(' token

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/istream.tcc:965:43: macro
"max" requires 2 arguments, but only 1 given

In file included from ../../src/Main/globals.hxx:28,

                from ../../src/Main/fg_props.hxx:14,

                from fgmetar.cxx:38:

../../src/Include/config.h:191:1: warning: "WIN32" redefined

In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:48,

                from /usr/include/plib/ul.h:113,

                from /usr/include/plib/sg.h:29,

                from /usr/local/include/simgear/constants.h:43,

                from /usr/local/include/simgear/timing/geocoord.h:43,

                from /usr/local/include/simgear/timing/timezone.h:33,

                from /usr/local/include/simgear/timing/sg_time.hxx:44,

                from fgmetar.cxx:37:

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h:29:1:
warning: this is the location of the previous definition

make[2]: *** [fgmetar.o] Error 1