[Lazarus] Changed Compilers Options, Run, Build versus Build All
Tom Verhoeff
T.Verhoeff at tue.nl
Fri Dec 12 08:00:55 CET 2008
On Thu, Dec 11, 2008 at 11:08:27PM +0100, Mattias Gaertner wrote:
> On Thu, 11 Dec 2008 22:33:21 +0100
> Tom Verhoeff <T.Verhoeff at tue.nl> wrote:
>
> >[...]
> > Here is another issue. When working on a program involving multiple
> > units, it may turn out that the "Use AnsiStrings" was not set
> > consistently.
> >
> > Students are advised to enable this globally in the Compiler Options,
> > but they sometimes forget. Some (given/generated) units also contain
> > their own {$H+}, others don't.
>
> Is this a student bug or an IDE bug?
Neither, it is a fact of life :-). It is a consequence of the fact
that units from different authors may have been made under different
assumptions. Some units are written with the assumption that they will
be compiled with -Sh, others do not make that assumption and include {$H+}
in the source.
> > When you change Compiler Options later, and then do Run, the relevant
> > unit may not be (re)compiled, because its source code did not change.
> > One is required to do a Build All first. But a beginner will not be
> > aware of this.
>
> Yes, that's why the IDE adds -B when the compiler parameters changed
> (except for search path changes). 0.9.26 has this feature. 0.9.24 not.
>
> > Is it possible to have the IDE suggest a Build All when doing Run,
> > if the Compiler Options were changed after the previous build?
>
> It does.
> Please provide an example, where it does not work.
Students are using 0.9.24 (mostly); the disk image with software for
their laptops is prepared in the summer. Having them upgrade later is
a cumbersome operation (and the ones that did, because they had problems
with their Lazarus installation, were bitten by various upgrade issues).
Thanks for the explanation. This is an incentive to consider an upgrade.
Tom
--
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE: +31 40 247 41 25 | Technische Universiteit Eindhoven
FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/ | The Netherlands
More information about the Lazarus
mailing list