#1 2015-07-15 13:22:25

alpinistbg
Member
Registered: 2014-11-12
Posts: 124

SynCommons compile error on XUbuntu 14.04.2

Hi ab,
I'm just trying to compile Sample01 on xubuntu with latest Lazarus and mORMot (just taken from the respective repositories), but unfortunately it gives me the error: SynCommons.pas(38350,13) Error: Incompatible types: got "LongInt" expected "Boolean".

The source code looks that way:

function TSynLocker.TryLock: boolean;
begin
  result := TryEnterCriticalSection(fSection);
end;

What I'm doing wrong? Thanks!

Offline

#2 2015-07-15 13:55:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,189
Website

Re: SynCommons compile error on XUbuntu 14.04.2

Offline

#3 2015-07-15 14:09:21

alpinistbg
Member
Registered: 2014-11-12
Posts: 124

Re: SynCommons compile error on XUbuntu 14.04.2

It is okay now. Thanks again!

Offline

#4 2015-07-15 16:23:47

alpinistbg
Member
Registered: 2014-11-12
Posts: 124

Re: SynCommons compile error on XUbuntu 14.04.2

Another little annoyance, the file SynVirtualDataset.pas referred in uses clause of another unit as SynVirtualDataSet (note the difference in the 'S' character case). Since linux file names are case sensitive this caused a compile error. Passed after changing the file name with the (in)correct case. The strangest thing is that I have reverted the file name back but now I can't reproduce the error and I can't tell you the name of the referrer unit sad

Offline

Board footer

Powered by FluxBB