[fpc-pascal]Unit initialization on Android library

Dejan Boras de_jean_7777 at yahoo.com
Sat Feb 12 13:26:40 CET 2011


Okay, this works nicely. I do realize it should be done automatically, but for whatever reason it does not, and I am not sure if this is something Android related or a fpc bug. Thanks.



----- Original Message -----
From:Paul Ishenin <webpirat at mail.ru>
To:Dejan Boras <de_jean_7777 at yahoo.com>; FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Cc:
Sent:Saturday, February 12, 2011 10:48 AM
Subject:Re: [fpc-pascal]Unit initialization on Android library

12.02.2011 16:36, Dejan Boras wrote:
> I've got a library which runs on Android, and is loaded by a Java program. The INITIALIZATION sections of units do not seem to be called, is there a way to do this manually, or am I missing something?
It must be done automatically but you can force it yourself:

program test;
procedure internal_initializeunits; external name 'FPC_INITIALIZEUNITS';

begin
  internal_initializeunits;
end.



More information about the fpc-pascal mailing list