Red Hat Bugzilla – Bug 42227
standard C++ header file <limits> is missing
Last modified: 2007-04-18 12:33:25 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2smp i686)
Description of problem:
g++ does not find the <limits> header file.
Steps to Reproduce:
1. Simply try to include <limits> from a C++ program, and compile it with
Actual Results: Compilation aborts with the error message:
limits: No such file or directory
Expected Results: Since this has been part of the standard for a while
now, I'd expect g++ to have it already.
rpm -q gcc
libstdc++ up to v2 does not provide this header, you don't have it in
egcs 1.1.x or gcc 2.95.x either.
<limits> is provided by libstdc++ v3 which is the completely rewritten
standard C++ library which will appear in the upcoming gcc 3.0.
<limits> is not the only one missing, you simply need to work around it
or wait for g++ 3.0.