<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
                 from TryOut.cpp:6:
In function `static long double numeric_limits<long double>::min()':
no field __convert_long_double_i' in union being initialized
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