Date: Wed, 15 Aug 2001 09:51:06 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Gerardo Cahn Message-Id: <2110-Wed15Aug2001095106+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (message from Gerardo Cahn on Tue, 14 Aug 2001 14:40:24 -0400) Subject: Re: regex.h problem References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Gerardo Cahn > Newsgroups: comp.os.msdos.djgpp > Date: Tue, 14 Aug 2001 14:40:24 -0400 > > A c++ program working under linux (gcc 2.96) gave me a syntax > error under djgpp (2.95.3 20010315). > > The problem seemed to be within the regex.h standard file; its > line 17 read: > > typedef off_t regoff_t; > > This off_t was not defined. I replaced it by 'int' and the > program is running fine. > > What was the correct way of having 'off_t' defined? See the Info reference manual for the DJGPP library (from the DOS prompt, type "info libc alpha regcomp"). See, it explicitly says to use these two headers: #include #include In other words, that program is buggy: it's not portable to any platform except GNU/Linux.