Page 1 of 1

[solved] ZAbstractRODataset.pas and FPC 2.6

Posted: 01.02.2012, 15:36
by zacheus
Hello,

To install Zeos SVN 903 in lazarus
  • in lazarus 0.9.31-34335-fpc-2.5.1-20111221.win32 : no problem
but
  • in lazarus 0.9.31-35069-fpc-2.6.1-20120201.win32 : Enum TFieldType.ftInteger lazarus\fpc\2.6.1\source\packages\fcl-db\src\base\db.pas (110,50).
    While waiting for the patch, you can fix like this:

    \src\component\ZAbstractRODataset.pas [Lines 3480 and following]:

    Code: Select all

    {$IFDEF FPC}
    const
      BaseFieldTypes: array[TFieldType] of TFieldType = (
        ftUnknown, ftString, ftSmallint, ftInteger, ftWord,
        ftBoolean, ftFloat, ftCurrency, ftBCD, ftDate,  ftTime, ftDateTime,
        ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic, ftFmtMemo,
        ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor, ftFixedChar,
        ftWideString, ftLargeint, ftADT, ftArray, ftReference,
        ftDataSet, ftOraBlob, ftOraClob, ftVariant, ftInterface,
        ftIDispatch, ftGuid, ftTimeStamp, ftFMTBcd, ftFixedWideChar, ftWideMemo);
    {$ELSE}
     {$IFDEF VER180}... 
In a recent post :
IndianaJones wrote:Which revision are you talking, revision966, and which directory are you using? Still gives error.
Thanks.
svn co svn://zeos.firmos.at/zeos/branches/testing --> Revision 903
svn co svn://zeos.firmos.at/zeos/trunk --> Revision 903
So which directory are you using to download Revision 966 ?
Regards.

Posted: 01.02.2012, 18:41
by marcov
The firmos SVN is no longer used since last March. SVN is now at sf.net again:

https://sourceforge.net/projects/zeoslib/develop

Posted: 01.02.2012, 21:25
by zacheus
OK. Thanks

svn co https://zeoslib.svn.sourceforge.net/svn ... es/testing works fine (-->Rev 972)