Re: [Lazarus] Adding units to a project

2009-03-12 Thread Antonio Sanguigni
> > Correct me if I am wrong, but doesn't that also mean that if the BOM > is inside a package and has a requirement to tiOPF package, then your > main program should only need to include the BOM package. The tiOPF > package doesn't need to be added explicitly to the main program. > Projects inher

Re: [Lazarus] Adding units to a project

2009-03-12 Thread Graeme Geldenhuys
On Thu, Mar 12, 2009 at 11:14 AM, Vincent Snijders wrote: > > The package with the BOM (Business object model?) should have a > requirement to the tiOPF package too, not just the main program. Ah yes, I forgot about that. :-( Correct me if I am wrong, but doesn't that also mean that if the BOM i

Re: [Lazarus] Adding units to a project

2009-03-12 Thread Antonio Sanguigni
> > > Graeme, I'm trying to follow your suggest but I'm getting some troubles > > that I will explain in a few. > > Well, I have 5-6 units that are my BOM and with my test projects it > > seems to work well. Now I started a new Lazarus project to build a > > presentation layer for this BOM I'm usin

Re: [Lazarus] Adding units to a project

2009-03-12 Thread Vincent Snijders
Antonio Sanguigni schreef: > > My question is: Do I need to create a package to use that units > or I'm > > missing something ? > > This is the recommended method if you share units between projects. It > just works much easier. > > If you normally add a unit which lives

Re: [Lazarus] Adding units to a project

2009-03-12 Thread Graeme Geldenhuys
2009/3/11 Antonio Sanguigni : > > But now I have another issue I cannot understand, I mean that units of my > BOM cannot find tiOPF units, even if I added tiOPF package into this new > project. Of course, test project with tiOPF package added worked fine. I have no idea. Such cases work for me. Al

Re: [Lazarus] Adding units to a project

2009-03-11 Thread Antonio Sanguigni
> > > My question is: Do I need to create a package to use that units or I'm > > missing something ? > > This is the recommended method if you share units between projects. It > just works much easier. > > If you normally add a unit which lives in a different directory than > other units, Lazarus n

Re: [Lazarus] Adding units to a project

2009-03-04 Thread Antonio Sanguigni
2009/3/4 David W Noon : > 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

Re: [Lazarus] Adding units to a project

2009-03-04 Thread Antonio Sanguigni
2009/3/4 Graeme Geldenhuys : > If you normally add a unit which lives in a different directory than > other units, Lazarus normally prompts you to add that new path to the > unit search path. Did you get any such prompt? I did not have this prompt ! Weird :O. > Anyway, creating a package with sh

Re: [Lazarus] Adding units to a project

2009-03-04 Thread David W Noon
On Wed, 2009-03-04 at 17:01 +, Antonio Sanguigni wrote: > I know I'm lost in a glass of water but I cannot be able to use some units. > I'm building a new lazarus project and I would like to re-use other > units in my file system. So I added them to this new project with > Project inspector -

Re: [Lazarus] Adding units to a project

2009-03-04 Thread Graeme Geldenhuys
On Wed, Mar 4, 2009 at 7:01 PM, Antonio Sanguigni wrote: > > My question is: Do I need to create a package to use that units or I'm > missing something ? This is the recommended method if you share units between projects. It just works much easier. If you normally add a unit which lives in a dif

[Lazarus] Adding units to a project

2009-03-04 Thread Antonio Sanguigni
Hi all, I know I'm lost in a glass of water but I cannot be able to use some units. I'm building a new lazarus project and I would like to re-use other units in my file system. So I added them to this new project with Project inspector - Add - Add Files - Add file to packages and this operation ad