Hello,
I can no longer create a new application. I place a component, and everything works fine. As soon as I add another component, I consistently get an error message.
If I want to make a minor modification to an existing program, for example, renaming a component, I also get this type of error.
Here, I'm creating a new application. I place a button, rename it, and change the caption. Then I click the button to create an event. Everything goes well. I compile, I test, everything works fine. I close the program, I try to add another button, and that's when the error occurs.
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
Btn_Quitter: TButton;
procedure Btn_QuitterClick(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Btn_QuitterClick(Sender: TObject);
begin
Application.Terminate;
end;
end.
Messages displayed
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.2.2+dfsg-32 [2024/01/05] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling /home/moi/.lazarus/test/project1.lpr
(3104) Compiling unit1.pas
/home/moi/.lazarus/test/unit1.pas(16,32) Hint: (5024) Parameter "Sender" not used
(9022) Compiling resource /home/moi/.lazarus/test/lib/x86_64-linux/project1.or
(9015) Linking /home/moi/.lazarus/test/project1
(1008) 63 lines compiled, 1.6 sec
(1022) 3 hint(s) issued
Codetools, Erreurs : 1
unit1.pas(8,66) Error: unité StdCtrls non trouvée
Infos Système
-------------
Static hostname: rbs459
Icon name: computer-desktop
Chassis: desktop 🖥️
Machine ID: ef146751110343e08300106e1423e14b
Boot ID: 474c7958d26147499d9278f6ad782f47
Operating System: Linux Mint 22.1
Kernel: Linux 6.8.0-86-generic
Architecture: x86-64
Hardware Vendor: ASRock
Hardware Model: B450 Pro4
Firmware Version: P4.50
Firmware Date: Wed 2020-11-04
Firmware Age: 5y 2month 2w 1d
CPU Modèle
----------
Nom de modèle : AMD Ryzen 5 3600 6-Core Processor