[fpc-pascal] Shared libries

Torsten Bonde Christiansen tc at epidata.dk
Mon Dec 12 20:49:58 CET 2011


>
>
> Well maybe ExportAll compiler feature should be suggested?
>
> But please try this
>
> unit Unit1;
>
> {$mode objfpc}{$H+}
>
> interface
>
> procedure proc1; stdcall;
> procedure proc2; stdcall;
>
> implementation
>
>
> procedure proc1; stdcall;
> begin
>    writeln('hello');
> end; exports proc1;
>
> procedure proc2; stdcall;
> begin
>    writeln('hello 2');
> end; exports proc2;
>
>
> end.
I tried and it didn't seem to work, however perhaps it could be related 
to that I'm trying to create a library for arm-linux on android.

I've been following the guides from 
http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android which 
i know probably is trying to
do something that's not possible.

Anyway, thanks to both of you for the help so far.

Regards,
Torsten.



More information about the fpc-pascal mailing list