numeric_limits problem

Gabriel Dos Reis Gabriel.Dos-Reis@dptmaths.ens-cachan.fr
Sun Sep 6 17:36:00 GMT 1998


>>>>> «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



More information about the Gcc mailing list