[Top][All Lists]

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

Re: Compilation problems

From: David Bateman
Subject: Re: Compilation problems
Date: Thu, 22 Nov 2007 10:32:58 +0100
User-agent: Thunderbird (X11/20060921)

Recif wrote:
> Hi,
>  I am trying to compile octave on a linux system using gcc 3.4.6
> I ran make configure,and then make, but I get an error while compiling
> I checked the archives but did not see any references to this problem.
> Any help fixing it will be appreciated.
> Recif
> g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc
> -DHAVE_CONFIG_H -Wall -W -Wshadow -Wold-style-cast -g -O2
> ./DLD-FUNCTIONS/ -o pic/regexp.o
> ./DLD-FUNCTIONS/ In function `int octregexp_list(const
> octave_value_list&, const std::string&, bool, std::list<regexp_elem,
> std::allocator<regexp_elem> >&, string_vector&, int&)':
> ./DLD-FUNCTIONS/ error: `regex_t' was not declared in this
> scope
Huh, this is very weird. regex is part of the standard libc  and a man
of onle of the functions on my system gives

REGCOMP(3)                 Linux Programmer's Manual               

       regcomp, regexec, regerror, regfree - POSIX regex functions

       #include <sys/types.h>
       #include <regex.h>

       int regcomp(regex_t *preg, const char *regex, int cflags);
       int regexec(const  regex_t  *preg,  const  char *string, size_t
                   regmatch_t pmatch[], int eflags);
       size_t regerror(int errcode, const regex_t *preg, char *errbuf, 
       void regfree(regex_t *preg);

What OS are you running on? What does "man regcomp" tell you above the
includes for the regex code? Why not install pcre instead and then the
regexp code isn't used.


David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

reply via email to

[Prev in Thread] Current Thread [Next in Thread]