[Flightgear-devel] CVS compiling error CYGWIN

2005-12-15 Thread Georg Vollnhals

Hi,
after many!!! new builds without any problem I have got a new one over 
the last days when trying to compile the newest CVS under Cygwin.
At last I even made a complete new Cygwin install and complete new 
download of SimGear and FlightGear CVS and tried to compile the whole 
stuff - same result: SimGear without problems, FlightGear compilation 
does not work.

Any ideas? Thank you in advance!
Regards
Georg EDDW

In file included from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/deque:71,
from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/queue:74,

from ../FGJSBBase.h:47,
from FGFCSComponent.h:46,
from FGDeadBand.h:40,
from FGDeadBand.cpp:40:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_deque.h: In 
member function `void std::_Deque_base_Tp, 
_Alloc::_M_initialize_map(size_t)':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_deque.h:446: 
error: expected unqualified-id before '(' token
In file included from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/deque:74,
from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/queue:74,

from ../FGJSBBase.h:47,
from FGFCSComponent.h:46,
from FGDeadBand.h:40,
from FGDeadBand.cpp:40:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/deque.tcc: In member 
function `void std::deque_Tp, _Alloc::_M_reallocate_map(size_t, bool)':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/deque.tcc:699: error: 
expected unqualified-id before '(' token
In file included from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/streambuf:781,

from /fg-cvs/include/simgear/debug/logstream.hxx:36,
from /fg-cvs/include/simgear/props/props.hxx:34,
from ../FGPropertyManager.h:40,
from FGFCSComponent.h:47,
from FGDeadBand.h:40,
from FGDeadBand.cpp:40:
/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(_CharT*, 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(const _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 /fg-cvs/include/simgear/debug/logstream.hxx:37,
from /fg-cvs/include/simgear/props/props.hxx:34,
from ../FGPropertyManager.h:40,
from FGFCSComponent.h:47,
from FGDeadBand.h:40,
from FGDeadBand.cpp:40:
/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 /fg-cvs/include/simgear/debug/logstream.hxx:37,
from /fg-cvs/include/simgear/props/props.hxx:34,
from ../FGPropertyManager.h:40,
from FGFCSComponent.h:47,
from FGDeadBand.h:40,
from FGDeadBand.cpp:40:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc: In 
member function `_InIter std::time_get_CharT, 
_InIter::_M_extract_name(_InIter, _InIter, int, const _CharT**, 
size_t, std::ios_base, std::_Ios_Iostate) const':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2056: 
error: expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc: In 
function `bool std::__verify_grouping(const char*, size_t, const 
std::string)':
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/locale_facets.tcc:2499: 
error: expected unqualified-id before '(' token
In file included from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/istream:771,
from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:46,

from /fg-cvs/include/simgear/debug/logstream.hxx:37,
from 

Re: [Flightgear-devel] CVS compiling error CYGWIN

2005-12-15 Thread David Luff
Have you tried adding -DNOMINMAX to your CFLAGS and CXXFLAGS?

Alternatively try adding

#ifdef HAVE_CONFIG_H
#  include config.h
#endif

as the first include of each cxx or cpp file giving problems.

I'm not using Cygwin any more BTW, so I'm posting blind, but I'm pretty sure it 
will turn out to be the old min/max redefinition problem again.

Cheers - Dave

Georg Vollnhals writes:

 Hi,
 after many!!! new builds without any problem I have got a new one over 
 the last days when trying to compile the newest CVS under Cygwin.
 At last I even made a complete new Cygwin install and complete new 
 download of SimGear and FlightGear CVS and tried to compile the whole 
 stuff - same result: SimGear without problems, FlightGear compilation 
 does not work.
 Any ideas? Thank you in advance!
 Regards
 Georg EDDW
 
 In file included from 
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/deque:71,
  from 
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/queue:74,
  from ../FGJSBBase.h:47,
  from FGFCSComponent.h:46,
  from FGDeadBand.h:40,
  from FGDeadBand.cpp:40:
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_deque.h: In 
 member function `void std::_Deque_base_Tp, 
 _Alloc::_M_initialize_map(size_t)':
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_deque.h:446: 
 error: expected unqualified-id before '(' token
 In file included from 

...

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


Re: [Flightgear-devel] CVS compiling error CYGWIN

2005-12-15 Thread Georg Vollnhals

Hi David,
your help did not only save the day but the rest of the week, thank you 
very much :-)

I could compile the CVS and FG is running!


Have you tried adding -DNOMINMAX to your CFLAGS and CXXFLAGS?

 

Mmh, this was behind my scope. If you ever have some time then tell me 
please where I find these flags. Can I find something linke a config 
file anywhere?



Alternatively try adding

#ifdef HAVE_CONFIG_H
#  include config.h
#endif

as the first include of each cxx or cpp file giving problems.

 

This solved the problem. I just put it into the following 4 files (I 
hope I did not forget one):

FGDeadband.h
../FGJSBBase.h
FGFCSComponent.h
../FGPropertyManager.h
!!
As I have not got the skills until now to create a diff file to the cvs 
and I am not sure whether I have placed the stuff at the position in the 
code where it should be in a professional manner I would ask anyone who 
can do it for changing these CVS files to prevent trouble for other 
friends using Cygwin/CVS. Thank you in advance!




I'm not using Cygwin any more BTW, so I'm posting blind, but I'm pretty sure it 
will turn out to be the old min/max redefinition problem again.

Cheers - Dave
 

Ok, now blind but pretty well remembering the way to go from the days 
you could see :-) :-)

Thank you once again, I am really happy now.
Regards
Georg EDDW

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