I would like to know if ZeosLib is planed to work on FPC64 (Linux and windows). especially with firebird and oracle.
regards
henri
FPC & CPU64
Moderators: gto, cipto_kh, EgonHugeist, mdaems
Bonjour
I have not yet tried to compile ZeosLib with FPC64, because I allready found many unsafe code, so it should not work on FPC64.
For example, there is many code transtyping pointer to integer, the correct way should be to use the PtrInt data type instead.
{$ifndef FPC}
PtrInt = Longint;
{$endif}
ex:
- inc(Integer(ptr))
should be
- inc(PtrInt(ptr))
concerning Firebird, ISC_STATUS should be PtrInt.
FPC compiler output many messages when trying to compile a 64bits unsafe code, so it is not a so hard task I allready made my own firebird connector (UIB) working with FPC64, and most of time I spend was testing!
Firebird 64bit libraries are availables for win64 and linux64
http://sourceforge.net/project/showfile ... up_id=9028.
I don't know anything about Oracle 64 bits, for one of my customers I need to use ZeosLib + firebird + oracle + FPC64, this is why i am here ...
henri
I have not yet tried to compile ZeosLib with FPC64, because I allready found many unsafe code, so it should not work on FPC64.
For example, there is many code transtyping pointer to integer, the correct way should be to use the PtrInt data type instead.
{$ifndef FPC}
PtrInt = Longint;
{$endif}
ex:
- inc(Integer(ptr))
should be
- inc(PtrInt(ptr))
concerning Firebird, ISC_STATUS should be PtrInt.
FPC compiler output many messages when trying to compile a 64bits unsafe code, so it is not a so hard task I allready made my own firebird connector (UIB) working with FPC64, and most of time I spend was testing!
Firebird 64bit libraries are availables for win64 and linux64
http://sourceforge.net/project/showfile ... up_id=9028.
I don't know anything about Oracle 64 bits, for one of my customers I need to use ZeosLib + firebird + oracle + FPC64, this is why i am here ...
henri