Using a lazarus unit in an FPC project? lazarus / 21-General ---------------------------------------------------------------------- jollytall · 2021-08-22 15:17 I needed NowUTC and found an old topic: https://forum.lazarus.freepascal.org/index.php?topic=17169.0. If I start a new Application (a GUI project) and add LazSysUtils it works immediately. If I start a Simple program and add the same it does not find. I tried to look what the difference was in the Project options, but did not find the option that differs and explains why one of them finds the unit and the other does not. Manually I could add the directory where LazSysUtils.pas is to the compiler options and then the Simple program works all right, so the problem is not that I could not make it run, simply I would like to understand where is the difference between the two. In this case it works, but more in general, is it safe to use a lazarus component in an FPC project (if it has no UI access obviously)? ---------------------------------------------------------------------- avk · 2021-08-22 16:01 It seems you need to add LazUtils to your project dependencies. ---------------------------------------------------------------------- jollytall · 2021-08-22 17:18 Thanks. I found it in Project Inspector... now, while I was looking in Project Options... earlier.