Hi,
using the most recent release of securebridge on Lazarus using 2.6.2 compiler I am getting this error when building as a win64 exe:
C:\lazarus\components\sbridge\Source\ScBridge.pas(636,113) Error: range check error while evaluating constants
C:\lazarus\components\sbridge\Source\ScBridge.pas(1053,1) Fatal: There were 1 errors compiling module, stopping
Any ideas?
Lazarus win64 compile error
Re: Lazarus win64 compile error
If I comment out this:
{$IFNDEF CLR}default HKEY_CURRENT_USER{$ENDIF}
in ScBridge.pas it compiles.
Does not like the default value on the property.
{$IFNDEF CLR}default HKEY_CURRENT_USER{$ENDIF}
in ScBridge.pas it compiles.
Does not like the default value on the property.
Re: Lazarus win64 compile error
To solve the problem, add the following code to the interface section of the ScBridge.pas unit:
Code: Select all
{$IFDEF FPC}
{$IFDEF MSWINDOWS}
const
HKEY_CURRENT_USER = NativeUint($80000001);
{$ENDIF}
{$ENDIF}
Re: Lazarus win64 compile error
Thanks,
That fixed it.
Will you guys have that fix in the next version?
That fixed it.
Will you guys have that fix in the next version?
Re: Lazarus win64 compile error
Yes, this fix will be included in the next SecureBridge build.