[fpc-devel] 3.0.4 and Windows 64

Ozz Nixon ozznixon at gmail.com
Sun Sep 30 19:17:02 CEST 2018


So, should I re-code everything to Double where possible? And Comp at Int64
no problem, that is how my Turbo Pascal build works (except I am using
Int64 = Record (DWord, DWord)).

Thanks for the help!

On Sun, Sep 30, 2018 at 1:09 PM Sven Barth via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:

> Ozz Nixon <ozznixon at gmail.com> schrieb am So., 30. Sep. 2018, 17:18:
>
>> A few years ago I acquired IP rights to Halcyon (xBase for Delphi/FPC).
>> For years, I have not had an issue, today, I am recompiling the suite (zero
>> code changes) - 3.0.4 Linux - no problems, 3.0.4 Mac - no problems.
>> However, 3.0.4 Windows - I am getting:
>>
>> Halcyon6SQL.pas(1407,41) Error: Can't determine which overloaded function
>> to call
>> Halcyon6SQL.pas(1752,34) Error: Can't determine which overloaded function
>> to call
>> Halcyon6SQL.pas(2413) Fatal: There were 2 errors compiling module,
>> stopping
>> Fatal: Compilation aborted
>>
>> Code is basically doing:
>>
>>    Int64 := trunc(variant);
>>
>> had to change to type cast:
>>
>>    Int64 := trunc(Extended(variant));
>>
>> the there error I am getting, code is basically doing:
>>
>>    comp := double*10000;
>>
>> Halcyon6DBF.pas(2123,33) Error: Incompatible types: got "Double" expected
>> "Int64"
>>
>> This last one, I am not sure what the compiler is expecting, and why only
>> on the Windows platform?
>>
>
> That's because on Win64 the Extended type is not available. There Extended
> is an alias to Double (explaining the first error) and Comp is an alias to
> Int64.
>
> Regards,
> Sven
>
>> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180930/e1cb28aa/attachment.html>


More information about the fpc-devel mailing list