From: Charles Krug Newsgroups: comp.os.msdos.djgpp Subject: Re: missing C++ header Date: Wed, 30 Dec 1998 10:10:28 -0500 Organization: Pentek Corporation Lines: 53 Message-ID: <368A4264.21266797@mail.pentek.com> References: <368926D6 DOT ED264561 AT utoronto DOT ca> <36896116 DOT 3C39C3A1 AT earthlink DOT net> <3689D541 DOT DF9346B9 AT utoronto DOT ca> NNTP-Posting-Host: mail.pentek.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (WinNT; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Michael Lehotay wrote: > Martin Ambuhl wrote: > > > > Michael Lehotay wrote: > > > > > > I've started to teach myself C++ from Stroustrup (3rd ed.), and I've run > > > into a problem: there is no header file. I realize I could use > > > instead, but what I really wanted was numeric_limits. > > > > When there is a C header named , the corresponding C++ header is > > called . In this case, it is . > > > > An unfortunate problem with BS's 3rd ed is a large number of errata, > > which are listing in several files at the wed site you can reach through > > the URL on the back cover of your book. He is correct. The file limits (which normally would be a shell that #includes limits.h, and would be found in the lang/cxx directory) is not there. A review of the errata shows that this has never changed, so I think we're safe in assuming that it's not there. The way in which is used in the example he's talking about indicates that it's a c++ file and not a c file. I recommend this proceedure: 1. Ignore the example until you understand how to create fred::mary() methods. 2. When you learn that, go back and create a file which has the functionality expected by Stroustrup. I suppose you could search for someone else's file, but you'd have to redefine everything, so you're probably better off just waiting. The limits.h file in the include directory is the c limits file, which has the correct constants, but not implemented as inline function returns. This is one of those, "as soon as I get a minute I'll whip one up and post it" things that I never seem to have time to do. Charles -- Charles Krug, Jr. Application Engineer Pentek Corp 1 Park Way Upper Saddle River, NJ 07458