[fpc-pascal] How to build .so with FPC and use it in C program?

Marco van de Voort marcov at stack.nl
Thu Dec 11 15:03:18 CET 2008


In our previous episode, Jonas Maebe said:
> >> FPC cannot build dynamic libraries on FreeBSD at this time (well,  
> >> at least
> >> none that work properly with C programs).
> >
> > Can this be done for other platforms?  eg: Linux 32/64bit and Windows
> > 32/64bit etc...
> > I'm mostly interested in 32bit Linux & Windows OS's.
> 
> Only the FreeBSD port is broken in that respect as far as I know.

I'm not entirely sure how it should work at all. Linux calls the "main" of a
.so, but I never found any docs for that.

At first I waited for the si_* stuff to finish, but that stalled, and
requires several things to be supported in the assembler reader to function
for FreeBSD.



More information about the fpc-pascal mailing list