Bug 42227

Summary: standard C++ header file <limits> is missing
Product: [Retired] Red Hat Linux Reporter: Wagner T. Correa <wtcorrea>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED DEFERRED QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: wtcorrea
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-25 01:27:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wagner T. Correa 2001-05-25 01:27:29 UTC
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.

How reproducible:
Always

Steps to Reproduce:
1. Simply try to include <limits> from a C++ program, and compile it with
g++.


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.


Additional info:

rpm -q gcc
gcc-2.96-81

Comment 1 Jakub Jelinek 2001-05-25 06:34:57 UTC
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.