Greetings,

The problem seems to be in htlib/HtDateTime.h with lines (156-159):

   // From an integer (seconds from epoc)
   HtDateTime(const int i) {SetDateTime((time_t)i); ToLocalTime();}

   // From a time_t value and pointer
   HtDateTime(time_t &t) {SetDateTime(t); ToLocalTime();}

Does anyone know what the purpose of the  (const int i)  version is?
In systems when  time_t  is an alias for  int  (like HPUX, it seems),
it causes problems.  In other systems, it seems to have no effect,
other than perhaps allowing a "const" argument to be passed as
non-const (which is slightly dubious).

I won't change anything, because my changes to the database code seem
to have introduced a plethora of bugs :(

Jesse, if you comment out line 156, I think it should compile.

Cheers,
Lachlan

On Thu, 26 Jun 2003 01:46, J. op den Brouw wrote:
> UX 10.20
> gcc 2.8.1
> make 3.78
> 
> make[1]: Entering directory
> `/pers/www/msql/Projects/Htdig/BUILD320/htdig-3.2.0b4-20030622/htnet'
> /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
> -I../include
> -DDEFAULT_CONFIG_FILE=\"/opt/htdig/htdig32/conf/htdig.conf\"
> -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db
> -I../db    -I/opt/htdig/lib/zlib/include  -g -O2 -Wall -fno-rtti
> -fno-exceptions -c -o HtFile.lo `test -f 'HtFile.cc' || echo
> './'`HtFile.cc
> g++ -DHAVE_CONFIG_H -I. -I. -I../include
> -DDEFAULT_CONFIG_FILE=\"/opt/htdig/htdig32/conf/htdig.conf\"
> -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db
> -I../db -I/opt/htdig/lib/zlib/include -g -O2 -Wall -fno-rtti
> -fno-exceptions -c HtFile.cc -o HtFile.o
> HtFile.cc: In method `enum Transport::DocStatus HtFile::Request()':
> HtFile.cc:255: call of overloaded `HtDateTime(int &)' is ambiguous
> ../htlib/HtDateTime.h:156: candidates are: HtDateTime::HtDateTime(int)
> ../htlib/HtDateTime.h:159:                 HtDateTime::HtDateTime(int &)
> ../htlib/HtDateTime.h:479:                 HtDateTime::HtDateTime(const
> HtDateTime &) <near match>

-- 
[EMAIL PROTECTED]
ht://Dig developer DownUnder  (http://www.htdig.org)


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to