[fpc-devel]Report in manual inconsitencies about linking libraries, and questions.

Michael Van Canneyt michael.vancanneyt at wisa.be
Mon Feb 2 10:23:06 CET 2004


On Fri, 30 Jan 2004, Javier Ros Ganuza wrote:

>
> But in order to have a working link form C to the static lib I need:
>
> ---
> extern void FPC_INITIALIZEUNITS (void);
>
> int
> main (int argc, char *argv[])
> {
> FPC_INITIALIZEUNITS();
> ...
> ---
>
> Has been this trik already cicumvented?.

No.

>
> Is this a correct procedure?

Yes.

> >From the analysis presented I supouse that free-pascal does not suport
> command line static linking.
>
> Will be added this feature in the future?, will the above trik be
> removed?

Yes.

>
> A suggestion: Could be the documentation made coherent with this.

I will do so.

>
> Coul be added the trick to make a static library and to link from a main
> C source to be added in
>
> prog.pdf->linking Isues->Making Libraries->Compiling Libraries

I will add this.

>
> Thanks
>
> Javier
>
> P.D.: I've developed and autotools(autoconf automake) toolchain with the
> example and the different casuistics. May somebody is interested. I've
> always wondered how to make freepascal work with autotools, may it can
> be included in the contributed code as an example on using that tools.
> I'm not an autotools expert but it works nicely.

You can send it to me, maybe we can include it at least with FPC.

Michael.




More information about the fpc-devel mailing list