X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Martin Boulte" Newsgroups: comp.os.msdos.djgpp Subject: Djgpp C compiler regEx comilation PB Date: Sun, 19 Nov 2006 14:45:05 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Lines: 50 Message-ID: <45605ffa$0$2291$426a34cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 19 Nov 2006 14:45:30 MET NNTP-Posting-Host: 81.57.84.181 X-Trace: 1163943930 news-4.free.fr 2291 81.57.84.181:1383 X-Complaints-To: abuse AT proxad DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi guy, I try to compile the myGrep.c program I found on Web at this site http://linuxgazette.net/issue55/tindale.html which uses regular expression and include regex.h. I get the following message : In file included from myGrep.c:11: c:/djgpp/include/regex.h:17: syntax error before "regoff_t" c:/djgpp/include/regex.h:25: syntax error before "regoff_t" c:/djgpp/include/regex.h:66: syntax error before "regmatch_t" In fact, when I go through regex.h, I get this : /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #ifndef __dj_include_regex_h_ #define __dj_include_regex_h_ #ifdef __cplusplus extern "C" { #endif #ifndef __dj_ENFORCE_ANSI_FREESTANDING #ifndef __STRICT_ANSI__ #define _POSIX2_RE_DUP_MAX 256 typedef off_t regoff_t; .... #ifdef __cplusplus } #endif which means that if I don't define C++ I do not get regex declaration. Does it mean that regex declaration is available only in C++ ? The first declare error comes from typedef off_t regoff_t Sincerly Martin