[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: gcc-4.3.0 compilation problem



On Thursday 07 February 2008 18:40:47 Kevin Kofler wrote:
> Steve Grubb <sgrubb <at> redhat.com> writes:
> > #include <limits.h>
>
> This is C++, limits.h is deprecated in C++, you should:
> #include <climits>
> instead.
>
>         Kevin Kofler

The error indicated that the missing function was getenv(), not std::getenv().  
Although it is possible that the file had a "using namespace std;" somewhere, 
there is no real way to tell.  If that line is not present, then climits 
won't help much (unless that line is added, or "using std::getenv();", as it 
should be).

-- Benjamin Kreuter



-- 
Message sent on: Thu Feb 7 19:19:27 EST 2008

Attachment: signature.asc
Description: This is a digitally signed message part.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]