Geoff,

I have updated to the latest snapshot tree and am giong to correct my
patches from earlier to match the latest snapshot.

Sparc C 4.2 gives me the following error compiling htlib/HtVector.cc

/bin/sh ../libtool --mode=compile
CC -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/opt/htdig/c
onf/htdig.conf\"
-I../include -I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db
 -I/usr/local/include -g -c HtVector.cc
CC -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/opt/htdig/c
onf/
htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I../htword -I
../db -I../db -I/usr/local/include -g -c HtVector.cc -o HtVector.o
"HtVector.h", line 106: Error: Virtual function HtVector::Copy() const
returns HtVector*, while Object::Copy() const returns Object*.
1 Error(s) detected.
gmake: *** [HtVector.lo] Error 1
maelstrom:~/broadvision/htdig/htlib>

My experience with C++ and polymorphism backs the changes that I made,
having ::Copy return the less specific 'Object' type and narrowing to the
correct type would be the developer's responsibility.

Now I can check this against SparcC 5.x but I think I'm going to have to run
in --compat=4 mode as the project I'm working towards is based on Sparc C
4.2.


--
David J. Graff
mailto:[EMAIL PROTECTED]
http://www.mindspring.com/~phlat
BEGIN:VCARD
VERSION:2.1
N:J. Graff;David
FN:David J. Graff
X-WAB-GENDER:2
URL;HOME:http://www.mindspring.com/~phlat
BDAY:19740705
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010506T202638Z
END:VCARD

Reply via email to