This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

numeric_limits problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]