Can't find crt(!?) lazarus / 34-Windows ---------------------------------------------------------------------- graemejc · 2021-12-12 00:47 This may be the simplest & stupidest question ever on this forum. Please forgive me. I run the following program .... Program Q2; uses         crt; begin end. ... and get the error message ... Compile Project, Target: Project1.exe: Exit code 1, Errors: 1 Project1.lpr(3,9) Fatal: Cannot find crt used by Q2 of the Project Inspector. This cannot be a syntax error, hence I am assuming that it's a Lazarus setting that has been corrupted. I have used this type of program on multiple occasions in the past, so am absolutely bamboozled. ---------------------------------------------------------------------- trev · 2021-12-12 05:26 Have you tried Lazarus IDE > Run > Cleanup and Build when in your Q project? ---------------------------------------------------------------------- graemejc · 2021-12-12 06:52 I deleted both Lazarus and Free Pascal and re-installed them both. Problem went away. It's annoying that I don't understand why the problem arose and what the "true" (non-reboot) solution is. Neverethless, appreciate your help. Thanks. ---------------------------------------------------------------------- marcov · 2021-12-12 13:42 Your program uses Crt and System, and maybe some target specific units that are used to implement Crt. Another such typical unit is e.g. contnrs It could be that unit Crt is the first unit outside of the core RTL that is being loaded, that usually means that there is something wrong with the unit path, but that the compiler somehow managed to auto add only the core RTL path. Since the problem is gone, this is more for future people with the problem, but try to verify the -Fu aka unitpath.