Sign in Join
Wiki copytemporary

Revision 1 of 2, by FTurtle on 1-20-2016. The page as it is now.

FPC message: Can not find unit/fr

General hints

Example:

 unit1.pas(40,42) Fatal: Can't find unit forms

The compiler didn't find a compatible forms.ppu file nor a source file (forms.pp or forms.pas or forms.p).

The compiler searches in the unit path. The unit path is the sum of:

Note: Even if there is a forms.ppu file in the unit path, the above message can appear, because FPC checks if the ppu file is valid (up to date). The .ppu file is valid, if all files it depends on are valid. If you install another FPC all .ppu files on your system become invalid and must be recompiled.

Can't find unit interfaces

The 'interfaces' unit is the part of the LCL. You must use it at least once in your program to link in the LCL interface (the platform dependent part of the LCL. For instance gtk or win32). You see this error, if

Can't find unit LResources

Can be solved by doing "Tools/Build Lazarus"

Detailed description about this topic

There is a detailed page about searching units here: Unit not found - How to find units


From the Free Pascal wiki, page "FPC message: Can not find unit/fr", as it stood on 2016-01-20 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.