From: Gerardo Cahn Newsgroups: comp.os.msdos.djgpp Subject: regex.h problem Date: Tue, 14 Aug 2001 14:40:24 -0400 Lines: 24 Message-ID: NNTP-Posting-Host: dsl-216-227-86-9.telocity.com (216.227.86.9) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 997814497 9078464 216.227.86.9 (16 [9291]) X-Newsreader: Forte Agent 1.8/32.548 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Yeah, I know ... I should know better than giving y'all the chance to tell me there were ten betters way of fixin' this. 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? Is 'int' bad/ not portable/ politically incorrect/ in poor taste? Thanks ! Gerardo L. Cahn linux, mac ... and, well, .. yes ... ((windows too))