This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
numeric_limits problem
- To: Iztok Polanic <ssdipola at guest dot arnes dot si>
- Subject: numeric_limits problem
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at dptmaths dot ens-cachan dot fr>
- Date: Sun, 6 Sep 1998 19:28:43 +0200 (MET DST)
- Cc: egcs at cygnus dot com
- References: <Pine.LNX.3.96.980906123253.29912B-100000@alpha.computers.org>
>>>>> «Iztok», Iztok Polanic <ssdipola@guest.arnes.si> wrote:
Iztok> Hello !!!
Iztok> I want to compile this program with egcs, but I get an error.
Iztok> #/usr/local/bin/g++ 3.3.cpp -o test
Iztok> 3.3.cpp: In function `int main()':
Iztok> 3.3.cpp:9: `numeric_limits' undeclared (first use this function)
Iztok> 3.3.cpp:9: (Each undeclared identifier is reported only once
Iztok> 3.3.cpp:9: for each function it appears in.)
Iztok> 3.3.cpp:9: parse error before `>'
Iztok> 3.3.cpp:14: confused by earlier errors, bailing out
Iztok> and here's the program
Iztok> #include <iostream.h>
Iztok> #include <limits.h>
Iztok> using namespace std;
[...]
The right file to #include is named "limits", without *extension*.
AFAICT, this file is not present in the distribution. Any contribution
appreciated.
-- Gabriel
"One reason that life is complex is that it has a
real part and imaginary part." -- Andrew Koenig