Saving a new unit lazarus / 31-LCL ---------------------------------------------------------------------- hvh · 2018-11-22 21:49 Where should i save a new unit  so  that when I start a new application   the  new unit can be found  when its name is supplied to the uses part?. Thanks for the replies. ---------------------------------------------------------------------- Bart · 2018-11-22 21:58 In the same folder as the application. Bart ---------------------------------------------------------------------- lucamar · 2018-11-22 22:57 Also: if it's a unit shared by various projects, save to a "common" folder and add it to each project with the project inspector. If you use it a lot of times (i.e. it's a base unit for most of your projects) you can also add its path either to the fpc.cfg file (-Fu/my/common/units/) or in the "other units path" options of Lazarus. ---------------------------------------------------------------------- howardpc · 2018-11-23 09:10 Quote from: lucamar on November 22, 2018, 11:57:15 pmIf you use it a lot of times (i.e. it's a base unit for most of your projects) you can also add its path either to the fpc.cfg file (-Fu/my/common/units/) or in the "other units path" options of Lazarus. While this is possible, if it is intended a base unit for many projects, in my view it would be preferable to put it in a package of its own, and add that package as a dependency to the projects that need it, rather than "polluting" the fpc.cfg file with global paths that are irrelevant to some compilations.