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
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to