[fpc-pascal] fp can't find the correct libraries

Marco van de Voort marcov at stack.nl
Sat Nov 19 16:59:06 CET 2005


> I sent Wednesday this request also but perhaps it wasn't seen.
> I was able to launch fp and read in the example progralm HelloWorld.
>  However, this program (and any other program) will compile as the error
> is:
> Fatal: Can't find unit System
> But when I look in fpc.cfg the path for units is correct:
> # searchpath for units and other system dependent things
> -Fu/usr/lib64/fpc/2.0.0/units/$fpctarget
> -Fu/usr/lib64/fpc/2.0.0/units/$fpctarget/*
> -Fu/usr/lib64/fpc/2.0.0/units/$fpctarget/rtl
> #-Fu~/fpc/packages/base/*/units/;~/fpc/fcll/units/;~/fpc/rtl/units/
> Well, my unit directory is /usr/lib64/fpc/2.0.0/units/x86_64-linux/....

Put that in the "unit directory" path in " options -> directories"  and have
the asterisk behind it (so like the second -Fu line above) .

IOW, the IDE has its own settings (_AND_ its own compiler, it is built in),
and fpc.cfg is irrelevant inside the IDE.

> but I don't know where the variable fpctarget is initialised, I assume
> in fp but cant find it. I have tried to set the path directly (in
> options) however with no effect.

The compiler expands it to the actual target.

> 1.      Where is fpctarget initialised ? (or how can nudge fpc to run at
> least "helloworld")

> 2.      Which lazarus version is available for version 2.0.0-x86_64 (or
> is there 2.0.1-050923-x86_64 version).

No idea.

> 3.      Why do I need fpcsrc (I assume it's the source of fpc) to use
> lazarus? (I didn't find it in wiki but maybe I didn't know where to
> look I hope somebody can give me the answers to my questions.

Lazarus needs it for its codetools. They can't use the precompiled units
yet for this.



More information about the fpc-pascal mailing list