[Lazarus] Including and existing unit
Antonio Fortuny
a.fortuny at sitasoftware.lu
Wed Aug 7 15:07:36 CEST 2013
Le 07/08/2013 13:38, Richard Mace a écrit :
>
> Thanks for the reply.
> In Lazarus, how do you include the unit?
>
Very simple: open the project option (Ctrl+F11), look in COmpiler
Options then Paths. Fill in Other unit files as appropriate.
Have a look into http://wiki.freepascal.org/IDE_Window:_Project_Options
Antonio.
> On 7 Aug 2013 08:53, "Antonio Fortuny" <a.fortuny at sitasoftware.lu
> <mailto:a.fortuny at sitasoftware.lu>> wrote:
>
>
> Le 07/08/2013 07:29, Richard Mace a écrit :
>
> Hi All,
> I am writing to similar applications, and want the "child" app
> to use some of the units of the parent app. If the units for
> the child app are in a different directory from the parent
> app, what's the best way of using an "include" in the child app?
>
> Hope that makes sense?
>
> Definitely yes. I'm used to create as much as needed source lib
> folders to store units common to more than one project. Folder's
> hierarchy depends on projects hierarchy. For example:
> root
> lib
> group1
> lib1
> project1
> project2
> group2
> lib2
> project3
> project4
>
> projects 1 & 2 share untils in lib1. Same for projects 3 & 4 with lib2
> But project 4 and project1 can share units within lib.
> When importing a unit in a project from a foilder ouside of the
> project's one, Lazarus proposes to insert the new source folder
> into the project's search path. So it's very easy.
>
> Antonio.
>
>
> Thanks
>
> Richard
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> <mailto:Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> <mailto:Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
Sita Software
*Antonio Fortuny*
Senior Software engineer
220, avenue de la Liberté
L-4602 Niederkorn
Tel.: +352 58 00 93 - 93
www.sitasoftware.lu <http://www.sitasoftware.lu>
Your IT Partner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130807/5350d1a5/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fefiejff.jpg
Type: image/jpeg
Size: 2306 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130807/5350d1a5/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iffchdib.jpg
Type: image/jpeg
Size: 921 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130807/5350d1a5/attachment-0007.jpg>
More information about the Lazarus
mailing list