[Lazarus] Which program type to select for cron usage?
Bo Berglund
bo.berglund at gmail.com
Mon Oct 19 15:12:28 CEST 2015
On Mon, 19 Oct 2015 14:01:56 +0200 (CEST), Michael Van Canneyt
<michael at freepascal.org> wrote:
>
>Did you add the files to the project in the project inspector dialog?
>That they are in the same directory as the project is not enough.
>
No, I just added them into the uses clause where appropriate.
But I seem to remember from Delphi that the function was rather
hit-and-miss in such cases. Having the units as part of the project
made things much better!
Thanks for the pointer!
And I just realized that it probably will not work until the code can
be compiled without errors too. And this does not happen because the
Delphi/Windows stuff has to come out either by delete or a bunch of
conditionals first. The compile barfs at such things as uses units
like:
Windows,
comctrls,
extctrls,
Forms,
StdCtrls,
FileCtrl
I put these inside {$IFNDEF UNIX} blocks to get past the errors.
Will have to deal later with the consequences of that of course.
One of the Delphi units (CommonFuncs) is a collection of goodies that
is used by a number of the object units, however I have now decided to
cut out everything not needed for this project from that unit and only
keep the bare necessities.
First time I am doing anything seriously complex in Lazarus, only
tested minute things over the years before (looked once a year
perhaps).....
--
Bo Berglund
Developer in Sweden
More information about the Lazarus
mailing list