[Lazarus] Is there a way to choose with fpc to use in lazarus command?
pascaldragon at googlemail.com
Sat Sep 25 23:08:58 CEST 2010
On 25.09.2010 22:48, Frank Church wrote:
> I am now get the dreaded "Fatal: Can't find unit Contnrs used by xxxxx"
> error, yet it is located in <source_dir>/packages/fcl-base/src/contnrs.pp
That normally means that the compiler is still using the wrong
configuration file. It might still use the ~/.fpc.cfg (or even the
/etc/fpc.cfg) which point to the 2.2.4 paths. You need to override the
paths in there with the ones from your current installation. For that
just backup the current ~/.fpc.cfg (or copy the one from /etc/fpc.cfg to
~/.fpc.cfg) and add "/home/???/LazarusInstalls/fpc240" before all
"/lib/..." paths. If there are "2.2.4" values you should also replace
them by "2.4.0".
Sidenote: the compiler shouldn't look for "contnrs.pp" but for
"contnrs.ppu" (and "contnrs.o") in
those units were already compiled when calling "make".
More information about the Lazarus