[lazarus] Newbie Q : Can't find classes.pas...

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Jun 30 03:36:41 EDT 2002


On 30 Jun 2002 09:44:16 +1000
David Creelman <dave at geko.net.au> wrote:

> Here is the result of ppc386 -vt bogus
> 
> [davidc at CPE-144-132-157-191 davidc]$ fpc -vt bogus
> Free Pascal Compiler version 1.0.6 [2002/04/30] for i386
> Copyright (c) 1993-2002 by Florian Klaempfl
> Compiler: /usr/local/lib/fpc/1.0.6/ppc386
> Target OS: Linux for i386
> Using executable path: /usr/local/lib/fpc/1.0.6/
> Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/
> Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/
> Using unit path: /usr/local/lib/fpc/1.0.6/
> [...]
> Compiling bogus
> Fatal: Can't open file bogus
> 
> There is no gtk here. What do I change to get it to find it ?
> 
> This is an excerpt from /etc/fpc.cfg, looking at the -Fu lines.
> # searchpath for units and other system dependent things
> -Fu/usr/local/lib/fpc/1.0.6/units/$target
> -Fu/usr/local/lib/fpc/1.0.6/units/$target/*
> -Fu/usr/local/lib/fpc/1.0.6/units/$target/rtl
> [...]
> The $target/* looks like it should get to the gtk directory, don't know
> why it doesn't...

Either the directories are not there, there is another config or this a compiler bug.
Plz try to manually add the path:
ppc386 -vt '-Fu/usr/local/lib/fpc/1.0.6/units/$target/*' bogus

If there is now the gtk dir, then your config is buggy or you have a double config.
If not, then you should double check, that the path is correct.

Weird thing. If we find the solution we should add this to the FAQ.

Mattias






More information about the Lazarus mailing list