Я использую следующий простой код из здесь :
program LazMessage;
uses
Dialogs;
begin
ShowMessage('This is a message from Lazarus');
end.
Однако выдается следующая ошибка:
fpc gui_showmsg.pas
Free Pascal Compiler version 3.0.0+dfsg-11+deb9u1 [2017/06/10] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling gui_showmsg.pas
gui_showmsg.pas(6,3) Error: Identifier not found "ShowMessage"
gui_showmsg.pas(9) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Добавление {$mode delphi}
или {$mode objfpc}
не имеет значения.
Где проблема и как ее можно решить?