As long as any units you create are part of you current project (or
required package) lazarus should find them.

This is something Mattias told me to do, when I had a issue with
packages and it's contained units not being found.  Right click on the
editor window. Select Unit Info. "In project" should be yes. Also go
to the Sources Path tab.  All source paths should be listed there -
you cannot edit that screen, but it shows what paths Lazarus uses to
find you units.

Regards,
 - Graeme -


On 17/09/06, Colin Lehmann <[EMAIL PROTECTED]> wrote:
Graeme Geldenhuys wrote:
> Are you creating a GUI app?  If so, Lazarus should add those search
> paths for you. Do you have the LCL as a project requirement. To check
> this, go to Procject -> 'project inspector'.  You should see LCL in
> the requirements list.  If not, click "Add" then "New Requirements"
> and select it from the Packages combo.
>
> As a side note: To extra info to the compiler in Lazarus, go to
> Project -> Compiler Options -> Other. You can type them in the "custom
> options" memo box.
>
> Regards,
>  - Graeme -
>
>
> On 17/09/06, Colin Lehmann <[EMAIL PROTECTED]> wrote:
>> Micha Nelissen wrote:
>> > Colin Lehmann wrote:
>> >
>> >> Now I have lazarus working at last, my first little program gives me
>> >> this error, I looked in The Environment Options but there is nothing
>> >> that looks likely, do I have to set it in the fpc.cfg file?
>> >>
>> >> Is it looking for the unit named Interfaces or is it looking for the
>> >> interfaces for all units?
>> >>
>> >
>> > There is a unit named Interfaces. Use the -FU option to pass the
>> path to
>> > the fpc compiler.
>> >
>> > fpc -FU/usr/lib/lazarus/lcl/units/i386-linux/
>> > -FU/usr/lib/lazarus/lcl/units/i386-linux/gtk/
>> >
>> > for example. It's possible to add these to your fpc.cfg, but it may
>> > confuse you later when you use different widgetset or
>> cross-compilation.
>> >
>> > Micha
>> >
>> > _________________________________________________________________
>> >      To unsubscribe: mail [EMAIL PROTECTED] with
>> >                 "unsubscribe" as the Subject
>> >    archives at http://www.lazarus.freepascal.org/mailarchives
>> >
>> >
>> Micha, please forgive me but I am in the Lazarus editor, those lines
>> look like they are to be attached to the compiler call, "fpc" but I am
>> not calling the compiler directly, Lazarus is calling it?
>>
>> _________________________________________________________________
>>      To unsubscribe: mail [EMAIL PROTECTED] with
>>                 "unsubscribe" as the Subject
>>    archives at http://www.lazarus.freepascal.org/mailarchives
>>
>
>
Yes, graeme, LCL is there and no, lazarus does not find any units for
me, it even cannot find unit 'Forms'. There must be  a path set
somewhere where it looks for units, what if I create my own class, how
do I tell it where to find it?

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives



--
There's no place like 127.0.0.1

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to