This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
<limits> and Cygwin
- To: libstdc++@sourceware.cygnus.com
- Subject: <limits> and Cygwin
- From: Scott Ladd <scottrobertladd@yahoo.com>
- Date: Tue, 31 Aug 1999 12:57:07 -0700 (PDT)
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