Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-01

ppc386.cfg or fpc.cfg ?

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

NORBERT ALLAIN

I use fpc20011216 and i have 2 configuration file: /etc/ppc386.cfg and /etc/fpc.cfg.
Where is the good for fpc20011216 and lazarus ?

In lazarus project i have /etc/ppc386.cfg whith good dir for units (-Fu/usr/local/lib/lazarus/units/linux) and fpc.
But i can't compile a single application with a form: can't compile FORMS (message of the compiler)

Thanks

Reply by email

Mattias Gaertner
to NORBERT ALLAIN
Show quoted text 10 lines
On Wed, 16 Jan 2002, NORBERT ALLAIN wrote: > I use fpc20011216 and i have 2 configuration file: /etc/ppc386.cfg and > /etc/fpc.cfg. > Where is the good for fpc20011216 and lazarus ? if fpc.cfg is found, it is used. If it is not found, then ppc386.cfg is searched.

Strange. Under debian it was the other way. If both ppc386.cfg and fpc.cfg are there, ppc386.cfg is parsed. Hence, I had to remove ppc386.cfg.

I don't know whether the lazarus IDE does something with this; i.e. whether it shows the settings found in these files (it should, IMHO).

The IDE will not change the default compiler config. The IDE uses the codetools to get the compiler config. The codetools do not read the compiler config file itself, but parses the output of a bogus compile with the verbose all option -va. This way you can install multiple compilers and start them via startscripts. The fpc-team can even change the name of the config file ;).

Mattias

Reply by email

Peter Vreman
to Michael Van Canneyt: if fpc.cfg is found, it is used. If it is not found, then ppc386.cfg is searched. For the…
Show quoted text 9 lines
> > I use fpc20011216 and i have 2 configuration file: /etc/ppc386.cfg and > > /etc/fpc.cfg. > > Where is the good for fpc20011216 and lazarus ? > > if fpc.cfg is found, it is used. If it is not found, then ppc386.cfg is > searched. Strange. Under debian it was the other way. If both ppc386.cfg and fpc.cfg are there, ppc386.cfg is parsed. Hence, I had to remove ppc386.cfg.

That is the way it is implemented in the compiler. When ppc386.cfg exists it is loaded, else fpc.cfg is checked

Peter

Reply by email

Michael Van Canneyt
to NORBERT ALLAIN: I use fpc20011216 and i have 2 configuration file: /etc/ppc386.cfg and /etc/fpc.cfg.…
NORBERT ALLAIN wrote
I use fpc20011216 and i have 2 configuration file: /etc/ppc386.cfg and /etc/fpc.cfg. Where is the good for fpc20011216 and lazarus ?

if fpc.cfg is found, it is used. If it is not found, then ppc386.cfg is searched.

For the command-line compiler it is better to use fpc.cfg since that one will be the standard as of 1.0.6.

I don't know whether the lazarus IDE does something with this; i.e. whether it shows the settings found in these files (it should, IMHO).

Michael.

Reply by email