Re: Still unbuildable on Windows


Subject: Re: Still unbuildable on Windows
From: Andrew Dunbar (hippietrail@yahoo.com)
Date: Fri Apr 13 2001 - 05:52:31 CDT


> On Fri, Apr 13, 2001 at 08:40:38PM +1000, Andrew Dunbar wrote:
> > Sam TH wrote:
> > >
> > > On Fri, Apr 13, 2001 at 08:21:13PM +1000, Andrew Dunbar wrote:
> > > > Is anyone else building for Windows? I'm still unable to build with
> > > > the new spellchecking code. It looks like a compiler bug but so far
> > > > I'm unable to reproduce the bug in a standalone example to submit to
> > > > MS.
> > > >
> > > > Can anybody verify that MSVC6 won't build AbiWord or better yet
> > > > provide a fix.
> > > >
> > > > Sorry to be a pain but I can't seem to fix this one myself. Here is
> > > > the output:
> > > >
> > > > make ABI_ROOT=/home/administrator/abiword/abi -C spell build
> > > > make[3]: Entering directory
> > > > `/home/administrator/abiword/abi/src/other/spell'
> > > > Building with [LicensedTrademarks:Off Debug:On BiDi:Off Pspell:Off
> > > > Scripting:Off].
> > > > ispell_checker.cpp
> > > > ispell_checker.cpp(139) : error C2511: 'checkWord' : overloaded member
> > > > function 'enum SpellChecker::_SpellCheckResult (u
> > > > nsigned short *,unsigned int)' not found in 'ISpellChecker'
> > > > ispell_checker.h(6) : see declaration of 'ISpellChecker'
> > >
> > > I don't understand this at all. Is it saying that checkWord isn't
> > > declared in ISpellChecker? That's just wrong.
> >
> > It seems to believe the pointer arguments are not declared const.
> > In fact if you remove the const keyword it does compile. This
> > makes no sense and indeed it doesn't link.
>
> Oh, that. You mean the arguments to iconv(), right? If so, I'm
> almost done with that fix.

No, in fact the arguments to checkWord, suggestWord, and
requestDictionary
as in these error lines from the compiler:

'checkWord' : overloaded member function
'enum SpellChecker::_SpellCheckResult (unsigned short *,unsigned int)'
not found in 'ISpellChecker'

'suggestWord' : overloaded member function
'class UT_Vector *(unsigned short *,unsigned int)'
not found in 'ISpellChecker'

'requestDictionary' : overloaded member function
'bool (char *)'
not found in 'ISpellChecker'

All 3 of these functions are declared and define with their first
argument being a const pointer but for some reason the compiler
thinks we are attempting to call members with non-const first
arguments.

I'm wondering if there may be some #define, typedef, or magick
affecting the const keyword? Even if this is a compiler bug
we need a workaround to have a Windows build at this point ):

Andrew.

-- 
http://linguaphile.sourceforge.net

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




This archive was generated by hypermail 2b25 : Fri Apr 13 2001 - 05:50:55 CDT