According to Gerrit P. Haase:
> I know, 3.2.0b3 is some days old, but I'm trying now
> to build ht://Dig at cygwin.
> 
> I need to include libregex during linking, but this is not an error
> during linking, any suggests, what to do now?
> 
> I got this compilation error:
> 
> /usr/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../include -
> DDEFAULT_CONFIG_FILE=\"/var/htdig/config/htdig.conf\"                 -I../include 
>-I../htlib                 -I../htnet -I../htcommon        
>       -I../htword             -I../db -I../db                 -DMV=\"/usr/bin/mv\"   
>-I/usr/include  -g -O2 -Wall -fno-rtti -fno-
> exceptions -c EndingsDB.cc
> g++ -DHAVE_CONFIG_H -I. -I. -I../include 
>-DDEFAULT_CONFIG_FILE=\"/var/htdig/config/htdig.conf\" -I../include -I../htlib 
> -I../htnet -I../htcommon -I../htword -I../db -I../db -DMV=\"/usr/bin/mv\" 
>-I/usr/include -g -O2 -Wall -fno-rtti -fno-
> exceptions -Wp,-MD,.deps/EndingsDB.pp -c EndingsDB.cc -o EndingsDB.o
> In file included from regex.h:20,
>                  from EndingsDB.cc:31:
> ../htlib/HtRegex.h:60: syntax error before `;'

There must be something strange about your source.  This message seems to
imply that regex.h line 20 is a #include of HtRegex.h.  I find no such
include.  Indeed, HtRegex.h is supposed to include regex.h, not the other
way around, and regex.h contains a typedef of regex_t.

> EndingsDB.cc: In method `void Endings::expandWord(String &, List &, Dictionary &, 
>char *, char *)':
> EndingsDB.cc:334: `regex_t' undeclared (first use this function)
> EndingsDB.cc:334: (Each undeclared identifier is reported only once
> EndingsDB.cc:334: for each function it appears in.)
> EndingsDB.cc:334: parse error before `;'
> EndingsDB.cc:340: `reg' undeclared (first use this function)
> EndingsDB.cc:340: `REG_ICASE' undeclared (first use this function)
> EndingsDB.cc:340: `REG_NOSUB' undeclared (first use this function)
> EndingsDB.cc:340: `REG_EXTENDED' undeclared (first use this function)
> EndingsDB.cc:340: implicit declaration of function `int regcomp(...)'
> EndingsDB.cc:341: implicit declaration of function `int regexec(...)'
> EndingsDB.cc:369: implicit declaration of function `int regfree(...)'
> make[1]: *** [EndingsDB.lo] Error 1
> make[1]: Leaving directory `/src/htdig/htdig-3.2.0b3/htfuzzy'
> make: *** [all-recursive] Error 1


-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to