----- Original Message ----- From: "Colin Lehmann" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, September 17, 2006 9:03 AM
Subject: Re: [lazarus] Can't find unit interfaces....


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?
Are you shure all compiled units are there? I had the same once when I aborted an accidentally started lazarus built. All units were cleaned out. Try rebuilding the LCL. Either from commandline or from Lazarus itself.

Darius


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

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

Reply via email to