Does not compile in Delphi XE5 ...

Code samples and contributions from users for ZeosLib's DBOs of version 6.x

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
User avatar
dieletro
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 21.11.2013, 23:30

Does not compile in Delphi XE5 ...

Post by dieletro »

When I try to install the zeos xe5 me he reports the following errors :
Checking project dependencies ...
Compiling ZCore.dproj ( Debug , Win32 )
dcc command line for " ZCore.dpk "
  c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ bin \ DCC32.exe - $ O- - $ W + - $ Q + - no- config- M- Q - Z - TX.bpl
  
  DbiTypes = BDE , BDE = DbiProcs ; DbiErrs BDE - DDEBUG = -I " c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ lib \ Win32 \ debug " , " c : \ program files
  ( x86 ) \ embarcadero \ rad studio \ 12.0 \ Imports " ; " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ Dcp " ; " c : \ program files ( x86 ) \ embarcadero \ rad
  studio \ 12.0 \ include "" C : \ Program Files ( x86 ) \ Raize \ CS5 \ Lib \ RS - XE5 \ Win32 " , " C : \ Program Files ( x86 ) \ Embarcadero \ RAD Studio \ 12.0 \ bin " ; Win32 ; " c : \ program
  files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ fc "" c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 "" C : \ Program Files ( x86 ) \ Embarcadero \ RAD
  
  
  C : \ ZEOSDBO - 7.1.2 -stable \ src \ plain- LE " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ Bpl " - LN " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ dcp "
  - NU . \ Win32 \ Debug - NSSystem ; Xml , Data , DataSnap ; web ; Soap ; Winapi ; -O " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ Bpl " " c : \ program files
  ( x86 ) \ embarcadero \ rad studio \ 12.0 \ Imports " ; " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ Dcp " ; " c : \ program files ( x86 ) \ embarcadero \ rad
  studio \ 12.0 \ include "" C : \ Program Files ( x86 ) \ Raize \ CS5 \ Lib \ RS - XE5 \ Win32 " , " C : \ Program Files ( x86 ) \ Embarcadero \ RAD Studio \ 12.0 \ bin " ; Win32 ; " c : \ program
  files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ fc "" c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 "" C : \ Program Files ( x86 ) \ Embarcadero \ RAD
  
  
  C : \ ZEOSDBO - 7.1.2 -stable \ src \ plain- R " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ Bpl " " c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ Imports " ;
  " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ Dcp " ; " c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ include " " C : \ Program Files
  ( x86 ) \ Raize \ CS5 \ Lib \ RS - XE5 \ Win32 " , " C : \ Program Files ( x86 ) \ Embarcadero \ RAD Studio \ 12.0 \ bin " ; Win32 ; " c : \ program files ( x86 ) \ embarcadero \ rad
  studio \ 12.0 \ fc "" c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 "" C : \ Program Files ( x86 ) \ Embarcadero \ RAD Studio \ 12.0 \ lib \ win32 \ release " ;
  
  -U " c : \ program
  files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ lib \ Win32 \ debug " , " c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ Imports " ; " C : \ Users \ Public \ Documents \ RAD
  Studio \ 12.0 \ Dcp " ; " c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ include "" C : \ Program Files ( x86 ) \ Raize \ CS5 \ Lib \ RS - XE5 \ Win32 " ; " C : \ Program Files
  ( x86 ) \ Embarcadero \ RAD Studio \ 12.0 \ bin " ; Win32 ; " c : \ program files ( x86 ) \ embarcadero \ rad studio \ 12.0 \ fc "" c : \ program files ( x86 ) \ embarcadero \ rad
  studio \ 12.0 "" C : \ Program Files ( x86 ) \ Embarcadero \ RAD Studio \ 12.0 \ lib \ win32 \ release " ; C : \ ZEOSDBO - 7.1.2 -stable \ packages \ DelphiXE5 \ Win32 ;
  
  C : \ ZEOSDBO - 7.1.2 -stable \ src \ parsesql ; C : \ ZEOSDBO - 7.1.2 -stable \ src \ plain- V - VN- K00400000 - description: " Zeos Core Classes and Interfaces "
  - NB " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ Dcp " - NH " C : \ Users \ Public \ Documents \ RAD Studio \ 12.0 \ hpp " - NO. \ Win32 \ Debug ZCore.dpk

[ dcc32 Error] ZSysUtils.pas ( 573 ) : E2250 There is no overloaded version of ' CharInSet ' that can be called with these arguments
[ dcc32 Error] ZSysUtils.pas ( 577 ) : E2251 Ambiguous overloaded call to ' CharInSet '
  ZCompatibility.pas ( 1 ) : Related method : function CharInSet ( AnsiChar ; TSysCharSet const ) : Boolean ;
  System.SysUtils.pas ( 5675 ) : Related method : function CharInSet ( AnsiChar ; TSysCharSet const ) : Boolean ;
[ dcc32 Error] ZSysUtils.pas ( 639 ) : E2003 Undeclared identifier: ' DecimalSeparator '
[ dcc32 Error] ZSysUtils.pas ( 640 ) : E2003 Undeclared identifier: ' ThousandSeparator '
[ dcc32 Error] ZSysUtils.pas ( 643 ) : E2251 Ambiguous overloaded call to ' CharInSet '
  ZCompatibility.pas ( 1 ) : Related method : function CharInSet ( AnsiChar ; TSysCharSet const ) : Boolean ;
  System.SysUtils.pas ( 5675 ) : Related method : function CharInSet ( AnsiChar ; TSysCharSet const ) : Boolean ;
[ dcc32 Error] ZSysUtils.pas ( 662 ) : E2003 Undeclared identifier: ' DecimalSeparator '
[ dcc32 Error] ZSysUtils.pas ( 750 ) : E2251 Ambiguous overloaded call to ' CharInSet '
  ZCompatibility.pas ( 1 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
  System.SysUtils.pas ( 5680 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
[ dcc32 Error] ZSysUtils.pas ( 750 ) : E2010 Incompatible types: ' AnsiChar ' and ' Char '
[ dcc32 Error] ZSysUtils.pas ( 868 ) : E2003 Undeclared identifier: ' DecimalSeparator '
[ dcc32 Error] ZSysUtils.pas ( 1255 ) : E2010 Incompatible types: ' PPointerList ' and ' TPointerList '
[ dcc32 Error] ZSysUtils.pas ( 1275 ) : E2251 Ambiguous overloaded call to ' CharInSet '
  ZCompatibility.pas ( 1 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
  System.SysUtils.pas ( 5680 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
[ dcc32 Error] ZSysUtils.pas ( 1275 ) : E2010 Incompatible types: ' AnsiChar ' and ' Char '
[ dcc32 Error] ZSysUtils.pas ( 1277 ) : E2251 Ambiguous overloaded call to ' CharInSet '
  ZCompatibility.pas ( 1 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
  System.SysUtils.pas ( 5680 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
[ dcc32 Error] ZSysUtils.pas ( 1277 ) : E2010 Incompatible types: ' AnsiChar ' and ' Char '
[ dcc32 Error] ZSysUtils.pas ( 1290 ) : E2251 Ambiguous overloaded call to ' CharInSet '
  ZCompatibility.pas ( 1 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
  System.SysUtils.pas ( 5680 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
[ dcc32 Error] ZSysUtils.pas ( 1290 ) : E2010 Incompatible types: ' AnsiChar ' and ' Char '
[ dcc32 Error] ZSysUtils.pas ( 1298 ) : E2251 Ambiguous overloaded call to ' CharInSet '
  ZCompatibility.pas ( 1 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
  System.SysUtils.pas ( 5680 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
[ dcc32 Error] ZSysUtils.pas ( 1298 ) : E2010 Incompatible types: ' AnsiChar ' and ' Char '
[ dcc32 Error] ZSysUtils.pas ( 1334 ) : E2251 Ambiguous overloaded call to ' CharInSet '
  ZCompatibility.pas ( 1 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
  System.SysUtils.pas ( 5680 ) : Related method : function CharInSet ( Char ; TSysCharSet const ) : Boolean ;
[ dcc32 Error] ZSysUtils.pas ( 1334 ) : E2010 Incompatible types: ' AnsiChar ' and ' Char '
[ dcc32 Error] ZSysUtils.pas ( 1463 ) : E2003 Undeclared identifier: ' DecimalSeparator '
[ dcc32 Error] ZSysUtils.pas ( 1464 ) : E2003 Undeclared identifier: ' ThousandSeparator '
[ dcc32 Warning] ZSysUtils.pas ( 1466 ) : W1000 Symbol ' AnsiStrPos ' is deprecated : 'Moved to the AnsiStrings unit '
[ dcc32 Warning] ZSysUtils.pas ( 1467 ) : W1000 Symbol ' AnsiStrPos ' is deprecated : 'Moved to the AnsiStrings unit '
[ dcc32 Warning] ZSysUtils.pas ( 1478 ) : W1000 Symbol ' AnsiStrPos ' is deprecated : 'Moved to the AnsiStrings unit '
[ dcc32 Warning] ZSysUtils.pas ( 1482 ) : W1000 Symbol ' AnsiStrPos ' is deprecated : 'Moved to the AnsiStrings unit '
[ dcc32 Warning] ZSysUtils.pas ( 1483 ) : W1000 Symbol ' AnsiStrPos ' is deprecated : 'Moved to the AnsiStrings unit '
[ dcc32 Warning] ZSysUtils.pas ( 1511 ) : W1000 Symbol ' StrLen ' is deprecated : 'Moved to the AnsiStrings unit '
[ dcc32 Warning] ZSysUtils.pas ( 1530 ) : W1000 Symbol ' StrLen ' is deprecated : 'Moved to the AnsiStrings unit '
[ dcc32 Fatal Error] ZEncoding.pas ( 850 ) : F2063 Could not compile used unit ' ZSysUtils.pas '
Failed
Elapsed time: 00:00:00.7

Can anyone help me ?
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: Does not compile in Delphi XE5 ...

Post by miab3 »

@dieletro,

Did you use version 7.1.x with patches?:
http://svn.code.sf.net/p/zeoslib/code-0 ... 1-patches/

Michal
User avatar
dieletro
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 21.11.2013, 23:30

Re: Does not compile in Delphi XE5 ...

Post by dieletro »

still giving these errors can someone explain me step by step

I'll say as I did for you analyze if I am executandos the correct procedure:

I downloaded the 7.1.2 zeos, extracts the files on it in my Main unit
I created a copy of the package renamed to Delphi and Delphi XE4 XE5
changed the suffix ProjetGroup from 18 to 19 Lib suffix changed from 18 to 19
ProjetGroup ran the build and sent by following these steps I get these errors.

Sorry for my English because I am Brazilian, and I have difficulties with the language ...


[dcc32 Error] ZSysUtils.pas(572): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(572): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(576): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(576): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(638): E2003 Undeclared identifier: 'DecimalSeparator'
[dcc32 Error] ZSysUtils.pas(639): E2003 Undeclared identifier: 'ThousandSeparator'
[dcc32 Error] ZSysUtils.pas(642): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(642): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(661): E2003 Undeclared identifier: 'DecimalSeparator'
[dcc32 Error] ZSysUtils.pas(749): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(749): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(867): E2003 Undeclared identifier: 'DecimalSeparator'
[dcc32 Error] ZSysUtils.pas(1254): E2010 Incompatible types: 'PPointerList' and 'TPointerList'
[dcc32 Error] ZSysUtils.pas(1274): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(1274): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(1276): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(1276): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(1289): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(1289): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(1297): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(1297): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(1333): E2251 Ambiguous overloaded call to 'CharInSet'
System.SysUtils.pas(5680): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
ZCompatibility.pas(1): Related method: function CharInSet(Char; const TSysCharSet): Boolean;
[dcc32 Error] ZSysUtils.pas(1333): E2010 Incompatible types: 'AnsiChar' and 'Char'
[dcc32 Error] ZSysUtils.pas(1462): E2003 Undeclared identifier: 'DecimalSeparator'
[dcc32 Error] ZSysUtils.pas(1463): E2003 Undeclared identifier: 'ThousandSeparator'
[dcc32 Warning] ZSysUtils.pas(1465): W1000 Symbol 'AnsiStrPos' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] ZSysUtils.pas(1466): W1000 Symbol 'AnsiStrPos' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] ZSysUtils.pas(1477): W1000 Symbol 'AnsiStrPos' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] ZSysUtils.pas(1481): W1000 Symbol 'AnsiStrPos' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] ZSysUtils.pas(1482): W1000 Symbol 'AnsiStrPos' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] ZSysUtils.pas(1510): W1000 Symbol 'StrLen' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Warning] ZSysUtils.pas(1529): W1000 Symbol 'StrLen' is deprecated: 'Moved to the AnsiStrings unit'
[dcc32 Fatal Error] ZEncoding.pas(850): F2063 Could not compile used unit 'ZSysUtils.pas'
Failed
Elapsed time: 00:00:00.3
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: Does not compile in Delphi XE5 ...

Post by miab3 »

@dieletro,

So use the current version 7.1 with patches:
http://svn.code.sf.net/p/zeoslib/code-0 ... 1-patches/

Michal
User avatar
dieletro
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 21.11.2013, 23:30

Re: Does not compile in Delphi XE5 ...

Post by dieletro »

Thanks my friend, now unable to compile AlphaTest zeos worked perfectly
I used the trial version 7.2
Post Reply