Page 1 of 1

Lazarus win64 compile error

Posted: Fri 07 Feb 2014 17:14
by snorkel
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?

Re: Lazarus win64 compile error

Posted: Fri 07 Feb 2014 17:55
by snorkel
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.

Re: Lazarus win64 compile error

Posted: Tue 11 Feb 2014 11:34
by Dimon
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

Posted: Tue 11 Feb 2014 15:57
by snorkel
Thanks,
That fixed it.

Will you guys have that fix in the next version?

Re: Lazarus win64 compile error

Posted: Wed 12 Feb 2014 11:42
by Dimon
Yes, this fix will be included in the next SecureBridge build.