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"
< [email protected]>
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
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
|
Antonio
Fortuny
Senior Software engineer
220, avenue de la Liberté
L-4602 Niederkorn
Tel.: +352 58 00 93 - 93
www.sitasoftware.lu
|
|
|
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus