[Flightgear-devel] build break with cygwin and gcc 3.4.4 in FlightGear approach.cxx

2005-10-17 Thread Ima Sudonim

Hi,

I am having a problem building flightgear on cygwin (cygwin updated  
last friday).


I am using cvs from this morning. The GCC is cygming 3.4.4

Any ideas what's wrong or how to fix it?  I've googled the error and  
seen a variety of 'error: expected unqualified-id before 'some  
token' token' with cygwin and gcc 3.4.x, but haven't seen anything  
that applies to flightgear's build of approach.cxx...


thanks!

Ima

Here's the build log:

if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../ 
src  -I/cygdrive/s/flightgear/fgdev9.9/include -I/usr
/local/include  -g -O2 -D_REENTRANT -MT approach.o -MD -MP -MF .deps/ 
approach.Tpo \

  -c -o approach.o `test -f 'approach.cxx' || echo './'`approach.cxx; \
then mv .deps/approach.Tpo .deps/approach.Po; \
else rm -f .deps/approach.Tpo; exit 1; \
fi
In file included from ../../src/Main/globals.hxx:28,
 from ../../src/Main/fg_props.hxx:14,
 from approach.hxx:34,
 from approach.cxx:21:
../../src/Include/config.h:194:1: warning: WIN32 redefined
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../ 
include/w32api/windows.h:48,
 from /cygdrive/s/flightgear/fgdev9.9/include/plib/ 
ul.h:113,
 from /cygdrive/s/flightgear/fgdev9.9/include/plib/ 
sg.h:29,
 from /cygdrive/s/flightgear/fgdev9.9/include/ 
simgear/constants.h:44,
 from /cygdrive/s/flightgear/fgdev9.9/include/ 
simgear/timing/geocoord.h:48,
 from /cygdrive/s/flightgear/fgdev9.9/include/ 
simgear/timing/timezone.h:33,
 from /cygdrive/s/flightgear/fgdev9.9/include/ 
simgear/timing/sg_time.hxx:45,

 from approach.hxx:31,
 from approach.cxx:21:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windef.h: 
29:1: warning: this is the location of the previou

s definition
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ 
fstream:840,

 from ATCVoice.hxx:27,
 from ATC.hxx:34,
 from approach.hxx:54,
 from approach.cxx:21:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/fstream.tcc: In  
member function `virtual typename std::basic_filebuf
_CharT, _Traits::int_type std::basic_filebuf_CharT,  
_Traits::underflow()':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/fstream.tcc:277:  
error: expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/fstream.tcc: In  
member function `virtual std::streamsize std::basic_f

ilebuf_CharT, _Traits::xsputn(const _CharT*, std::streamsize)':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/fstream.tcc:585:  
error: expected unqualified-id before '(' token

make[2]: *** [approach.o] Error 1
make[2]: Leaving directory `/cygdrive/s/flightgear/fgdev9.9/src/ 
FlightGear/src/ATC'

make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/cygdrive/s/flightgear/fgdev9.9/src/ 
FlightGear/src'

make: *** [install-recursive] Error 1

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] build break with cygwin and gcc 3.4.4 in FlightGear approach.cxx

2005-10-17 Thread Georg Vollnhals

Hi Ima,
when I tried to build a CVS version of FlightGear I had a *lot* of 
trouble and errors. Many developers of this list tried to help me but 
the break-through was an advice of *KEVIN JONES* not to use gcc 3.4.4 
(what I had done until then).
I followed his detailled instructions as he was just writing a 
tutorial/manual about building FlightGear 0.9.8/FlightGear CVS under 
Cygwin and all went fine. Absolute not problems with the build when 
using gcc 3.3.3 !!! Try it!
Kevin will publish his tutorial/manual soon and I hope he is not angry 
about my answer.
But he helped me so much with his advice at a time where I already had 
given up my trials because I would not show up here with another ask for 
help and all further hints did not work.

So to repeat it, the key-advice for me was to go back to gcc 3.3.3!
Thank you once again, Kevin Jones :-)
And I hope it will help you too, Ima.
Regards
Georg



Ima Sudonim schrieb:


Hi,

I am having a problem building flightgear on cygwin (cygwin updated  
last friday).


I am using cvs from this morning. The GCC is cygming 3.4.4

Any ideas what's wrong or how to fix it?




___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d