[fpc-pascal] installing or using multiple versions of FPC on linux
nc-gaertnma at netcologne.de
Tue Jul 27 11:35:18 CEST 2010
On Mon, 26 Jul 2010 14:49:02 +0200
Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
> On 26 Jul 2010, at 14:18, Bernd Kreuss wrote:
> > What is the easiest way to have a second installation of FPC around that
> > I can easily switch to on the same machine without having to change half
> > a dozen paths and moving config files around?
> Personally, I never actually install my development FPC versions (other than manually copying the compiler binaries under different names, since as I work on the compiler it's handy to have multiple versions for comparison purposes).
> I have a .fpc.cfg file in my home directory that looks more or less like this:
> #ifdef VER2_5_1
> #ifdef VER_2_4_3
> #include /etc/fpc
> You occasionally have to modify the version numbers in the #ifdef statements, but other than that it's fairly hassle-free. How to combine this with Lazarus, I don't know.
Lazarus asks the compiler for its search paths and settings. So the
above is also seen by the IDE.
Whenever you change the compiler path in the environment options
it asks again.
It has a history list of all used compiler file names, so switching
between two compilers is easy.
More information about the fpc-pascal