:) Well, we got farther, apparently! I made the changes as you said. Sorry I'm not more adept with C++ and make-ing or I'd figure it out myself.
Now the error I get is:
f/htdig.conf\" -I../include -I../htlib -I../htnet -I../
htcommon -I../htword -I../db -I../db -DCONFIG
_DIR=\"//d/opt/www/conf\" -I../htfuzzy -I/usr/include -g -O2 -Wall -fno-rtti
-fno-exceptions -c Display.cc
Display.cc: In method `Display::Display(Dictionary *)':
Display.cc:55: `DBL_MAX' undeclared (first use this function)
Display.cc:55: (Each undeclared identifier is reported only once
Display.cc:55: for each function it appears in.)
Display.cc: In method `void Display::setVariables(int, List *)':
Display.cc:621: warning: choosing `String::operator char *()' over `String::oper
ator const char *() const'
Display.cc:621: warning: for conversion from `String' to `const char *'
Display.cc:621: warning: because conversion sequence for the argument is bette
r
Display.cc:623: warning: choosing `String::operator char *()' over `String::oper
ator const char *() const'
Display.cc:623: warning: for conversion from `String' to `const char *'
Display.cc:623: warning: because conversion sequence for the argument is bette
r
make[1]: *** [Display.o] Error 1
make[1]: Leaving directory `/usr/local/src/htdig-3.2.0b3/htsearch'
make: *** [all-recursive] Error 1
-----Original Message-----
From: Gilles Detillieux [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 3:54 PM
To: Holmes, Gregory
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [htdig] compiling 3.2.0b3 on Cygwin
According to Holmes, Gregory:
>
> Making all in htdb
> make[1]: Entering directory `/usr/local/src/htdig-3.2.0b3/htdb'
> c++ -DHAVE_CONFIG_H -I. -I. -I../include
> -DDEFAULT_CONFIG_FILE=\"//d/opt/www/con
> f/htdig.conf\" -I../include -I../htlib -I../htnet
> -I../
> htcommon -I../htword -I../db -I../db
> -I/us
> r/include -g -O2 -Wall -fno-rtti -fno-exceptions -c htdb_load.cc
> htdb_load.cc: In function `int main(int, char **)':
> htdb_load.cc:93: implicit declaration of function `int getopt(...)'
> make[1]: *** [htdb_load.o] Error 1
> make[1]: Leaving directory `/usr/local/src/htdig-3.2.0b3/htdb'
> make: *** [all-recursive] Error 1
>
> Thanks very much for your help! I hope to compile this yet.
OK, now try adding the following 3 lines right after the #include <unistd.h>
in htdb/htdb_*.cc (i.e. where * is dump, load and stat):
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif /* HAVE_GETOPT_H */
All other files that use getopt() seem to have this.

