Still the same error. I'm on win7 x64.
https://i.postimg.cc/0NrQqqCj/Capture.png
To make velthuisconsole2.zip from Thaddy compile, here a tutorial:
1. download velthuisconsole2.zip
2. extract it in its own project folder
3. rename ConsoleDemo.dpr to ConsoleDemo.lpr
4. open lazarus "Project -> Close Project" if anything is opened
5. select "Open Project"
6. change filemask filter from "Lazarus Project (*.lpi)" to "All Files (*.*)"
7. locate and doubleclick ConsoleDemo.lpr
8. select "Create Project" -> "Simple Program"
9. press F9 so the file "Velthuis.Console" gets opened
10. scroll to start of file "Velthuis.Console" and...
replace this
{$IF DEFINED(FPC)}
{$DEFINE CompilerVersion=17.0}
{$MODE DELPHI}
{$DEFINE HASERROUTPUT}
{$ENDIF}
with that
{$IF DEFINED(FPC)}
{$DEFINE CompilerVersion=17.0}
{$MODE DELPHI}
{$DEFINE HASERROUTPUT}
{$ASMMODE intel}
{$ENDIF}
and save project.
Does it compile and run?
I just quick tested as 64bit windows target with Lazarus 3.99 (rev main_3_99-2053-g3635aa3044) FPC 3.2.2 x86_64-win64-win32/win64
And please in future copy the error message and paste it in here instead of taking a screenshot and upload it not here.