Page 1 of 1

FPC & CPU64

Posted: 21.05.2008, 08:41
by hgourvest
I would like to know if ZeosLib is planed to work on FPC64 (Linux and windows). especially with firebird and oracle.

regards
henri

Posted: 21.05.2008, 09:11
by mdaems
Bonjour Henri,

Does this mean it doesn't work with FPC64? Normal FPC is working right, so what changes should be done to get it working on 64 bit machines?
I suppose you already have the right dll's available on your machine. Are they available for FB 10 and oracle9/10?

Mark

Posted: 21.05.2008, 10:09
by hgourvest
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