I installed Typhon32, started it, did new project selecting application and got a window with a project file + unit1 showing a form. When I compile (nothing added to the form) I get errors:
Compile Project: Exit code 1, Errors: 50, Hints: 1
unit1.pas(8,68) Hint: Unit "StdCtrls" not used in Unit1
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomPage
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomNotebook
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomImageList
project1.lpr(20,1) Error: Undefined symbol: WSRegisterMenuItem
project1.lpr(20,1) Error: Undefined symbol: WSRegisterMenu
project1.lpr(20,1) Error: Undefined symbol: WSRegisterMainMenu
project1.lpr(20,1) Error: Undefined symbol: WSRegisterPopupMenu
project1.lpr(20,1) Error: Undefined symbol: WSRegisterDragImageList
project1.lpr(20,1) Error: Undefined symbol: WSRegisterLazAccessibleObject
project1.lpr(20,1) Error: Undefined symbol: WSRegisterControl
project1.lpr(20,1) Error: Undefined symbol: WSRegisterWinControl
project1.lpr(20,1) Error: Undefined symbol: WSRegisterGraphicControl
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomControl
project1.lpr(20,1) Error: Undefined symbol: WSRegisterScrollingWinControl
project1.lpr(20,1) Error: Undefined symbol: WSRegisterScrollBox
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomFrame
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomForm
project1.lpr(20,1) Error: Undefined symbol: WSRegisterHintWindow
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomScrollBar
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomGroupBox
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomComboBox
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomListBox
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomEdit
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomMemo
project1.lpr(20,1) Error: Undefined symbol: WSRegisterButtonControl
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomButton
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomCheckBox
project1.lpr(20,1) Error: Undefined symbol: WSRegisterToggleBox
project1.lpr(20,1) Error: Undefined symbol: WSRegisterRadioButton
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomStaticText
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomLabel
project1.lpr(20,1) Error: Undefined symbol: WSRegisterShape
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomSplitter
project1.lpr(20,1) Error: Undefined symbol: WSRegisterPaintBox
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomImage
project1.lpr(20,1) Error: Undefined symbol: WSRegisterBevel
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomRadioGroup
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomCheckGroup
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomLabeledEdit
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomPanel
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomTrayIcon
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomBitBtn
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomSpeedButton
project1.lpr(20,1) Error: Undefined symbol: WSRegisterStatusBar
project1.lpr(20,1) Error: Undefined symbol: WSRegisterTabSheet
project1.lpr(20,1) Error: Undefined symbol: WSRegisterPageControl
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomListView
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomProgressBar
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomUpDown
project1.lpr(20,1) Error: Undefined symbol: WSRegisterCustomToolButton
Line 20is the last line of the project file (ie 'end.'). Various forums show this to be common but all responses say it is solved by adding interfaces to the uses list but it is already there - this is the project file:
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, Unit1
{ you can add units after this };
{$R *.res}
begin
RequireDerivedFormResource := True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
I checked project inspector and LCL is listed as a dependency. What have I missed?