[sword-devel] EVC3 Compile Errors

SonWon sonwon.1 at gmail.com
Mon Jul 14 19:19:37 MST 2008


Thank you Albert!

They fixed the repositories so I went with 2181.  So sword is at 2181 
and swordreader is at 150.

I still get this error on a compile:

C:\CrossWire\sword\src\keys\versetreekey.cpp(148) : error C2352: 
'sword::TreeKey::PositionChangeListener::getTreeKey' : illegal call of 
non-static member function
        ..\..\..\sword\include\treekey.h(58) : see declaration of 
'getTreeKey'

Error C2352 is:
A static member function calls a nonstatic member function.

The line is:
TreeKey *tkey = TreeKey::PositionChangeListener::getTreeKey();

The declaration is:
TreeKey *getTreeKey() { return treeKey; }

Anyone see what is wrong?  I still need to read up on MFC stuff.  
Besides, I am just a code hack.  :)

Thank you,

Albert L. Sites, Sr. wrote:
> Do a check-out at version 2179 for sword. If you have tortoise-svn you can
> choose update to revision without doing a delete. That will grab all of the
> files as they existed before fastSearch was introduced the other day.
>
> Al
>
> -----Original Message-----
> From: SonWon [mailto:sonwon.1 at gmail.com] 
> Sent: Monday, July 14, 2008 6:33 PM
> To: SWORD Developers' Collaboration Forum
> Subject: [sword-devel] EVC3 Compile Errors
>
> Ahh, the compile errors are getting worst.
>
> So I did a delete and checkout of the files again, no fix.
>
> Here is the list of errors not counting the other one I posted:
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(57) : error 
> C2065: 'fastSearch' : undeclared identifier
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(57) : error 
> C2109: subscript requires array or pointer type
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(57) : error 
> C2106: '=' : left operand must be l-value
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(62) : error 
> C2109: subscript requires array or pointer type
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(62) : error 
> C2440: '=' : cannot convert from 'class sword::RawStr4 *' to 'int'
>         This conversion requires a reinterpret_cast, a C-style cast or 
> function-style cast
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(75) : error 
> C2109: subscript requires array or pointer type
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(76) : error 
> C2109: subscript requires array or pointer type
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(76) : error 
> C2541: delete : cannot delete objects that are not pointers
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(78) : error 
> C2109: subscript requires array or pointer type
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(79) : error 
> C2109: subscript requires array or pointer type
> C:\CrossWire\sword\src\modules\texts\rawtext4\rawtext4.cpp(79) : error 
> C2541: delete : cannot delete objects that are not pointers
>
> It looks like the Sword api is broken at the moment?  How do I get an 
> older version of the files using svn?
>
> Is anyone else getting these errors?
>
>   

-- 
SonWon

I choose God and all that my choice entails in this life even unto death and look forward to the new life that will come.




More information about the sword-devel mailing list