<limits> and Cygwin

Scott Ladd scottrobertladd@yahoo.com
Tue Aug 31 12:57:00 GMT 1999


Using gcc 2.95 for Cygwin under Win NT 4, I cannot compile code
including <limits>. The problem lies in std_limits.h, in the definition
of numeric_limits<long double>.min, where it complains about a union:

BASH.EXE-2.02$ g++ -o TryOut TryOut.cpp CoyExcept.cpp SigExcept.cpp
In file included from
/PROGRA~1/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95/../../../../../include/g++-3/limits:2,
                 from TryOut.cpp:6:
/PROGRA~1/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95/../../../../../include/g++-3/bits/std_limits.h:
In function `static long double numeric_limits<long double>::min()':
/PROGRA~1/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95/../../../../../include/g++-3/bits/std_limits.h:686:
no field __convert_long_double_i' in union being initialized
/PROGRA~1/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/2.95/../../../../../include/g++-3/bits/std_limits.h:686:
confused by earlier errors, bailing out


Also: I note that the suipplied version of numeric_limits is incorrect
in regards to is_iec559, has_infinity and their kin for floating-point
types. Is there a newer version of this header somewhere, or do I need
to generate one from the original libstdc++ library source code?

Thanks much!

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com



More information about the Libstdc++ mailing list