[Lazarus] Adding units to a project

Antonio Sanguigni a.sanguigni at gmail.com
Wed Mar 4 20:22:33 CET 2009


2009/3/4 David W Noon <david.w.noon at ntlworld.com>:

> The way I approach reusing common code is to have my common units in
> local directories:
>
>   ~/units           -- for code that is not yet considered stable
>   /usr/local/units  -- for code that is considered stable
>
> The first of these is added with a -Fu option in my ~/.fpc.cfg file, and
> the second is added with a -Fu option in my /etc/fpc.cfg file. These
> directories can also be added to your Lazarus compilation options.
>
> Whenever I need to incorporate a unit I simply add its name to the
> "uses" clause of the unit that needs to invoke code from the shared
> unit. Lazarus seems to find the code when tracing, so it all just seems
> to work.

Cool, I will try also this method, too.

Antonio


-- 
Antonio Sanguigni alias slapshot
----------------------------------------------------------------------
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.pieroni.biz/edupup




More information about the Lazarus mailing list