Lazarus

Programming => Packages and Libraries => RichMemo => Topic started by: totya on October 24, 2020, 08:38:31 pm

Title: Compile error
Post by: totya on October 24, 2020, 08:38:31 pm
Hi!

I can't compile the rev7645, reason two errors:

Quote
win32richmemoproc.pas(784,22) Error: Incompatible types: got "<address of function(PDWord;PByte;LongInt;var LongInt):DWord;StdCall>" expected "<procedure variable type of function(QWord;PByte;LongInt;var LongInt):DWord;StdCall>"
win32richmemoproc.pas(812,22) Error: Incompatible types: got "<address of function(PDWord;PByte;LongInt;var LongInt):DWord;StdCall>" expected "<procedure variable type of function(QWord;PByte;LongInt;var LongInt):DWord;StdCall>"

Lazarus CLEAN install toady via fpcupdeluxe x64 1.8.2c fixes/fixes (latest:47152/64032) branch on Win10 Pro x64
Title: Re: Compile error
Post by: Leledumbo on October 27, 2020, 04:29:26 am
Just `svn up` or report if it's still there, from time to time there will be broken commits, either due to sleepiness or unawareness (i.e. a change that works in one platform breaks another).
Title: Re: Compile error
Post by: totya on October 27, 2020, 09:09:48 pm
Just `svn up` or report if it's still there, from time to time there will be broken commits, either due to sleepiness or unawareness (i.e. a change that works in one platform breaks another).

Hi! I reported conflict between the "fixes" branch and this component. Fixes is the best choice as I know. Thank you.
Title: Re: Compile error
Post by: DonAlfredo on October 27, 2020, 10:13:39 pm
This is just a RichEdit problem. Patch included.
Title: Re: Compile error
Post by: totya on October 29, 2020, 09:13:54 pm
This is just a RichEdit problem. Patch included.

Hi, thank you, but how can I apply this patch?
Title: Re: Compile error
Post by: JuhaManninen on October 29, 2020, 10:06:27 pm
Hi, thank you, but how can I apply this patch?
Use "patch" command or TortoiseMerge.
 https://wiki.freepascal.org/Creating_A_Patch#Applying_a_patch
Title: Re: Compile error
Post by: totya on October 30, 2020, 06:50:01 pm
Hi, thank you, but how can I apply this patch?
Use "patch" command or TortoiseMerge.
 https://wiki.freepascal.org/Creating_A_Patch#Applying_a_patch

Thanks, but filename is "fpcuppatch"... but nevermind, I can do it with svn gui. The result isn't perfect yet:

Quote
C:\lazarus\components\richmemo_svn\.\win32\win32richmemoproc.pas(770,10) Error: (4054) Illegal type conversion: "LongWord" to "TStream"
C:\lazarus\components\richmemo_svn\.\win32\win32richmemoproc.pas(784,22) Error: (4001) Incompatible types: got "<address of function(LongWord;PByte;LongInt;var LongInt):DWord;StdCall>" expected "<procedure variable type of function(QWord;PByte;LongInt;var LongInt):DWord;StdCall>"
C:\lazarus\components\richmemo_svn\.\win32\win32richmemoproc.pas(798,10) Error: (4054) Illegal type conversion: "LongWord" to "TStream"
C:\lazarus\components\richmemo_svn\.\win32\win32richmemoproc.pas(812,22) Error: (4001) Incompatible types: got "<address of function(LongWord;PByte;LongInt;var LongInt):DWord;StdCall>" expected "<procedure variable type of function(QWord;PByte;LongInt;var LongInt):DWord;StdCall>"
win32richmemoproc.pas(1130) Fatal: (10026) There were 4 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: C:\lazarus\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode

A few months ago I can't use the fixes branch, I never tought it can happen ever.
TinyPortal © 2005-2018