[fpc-pascal] Linking statically C code with stdcall functions

Marco van de Voort marcov at stack.nl
Fri Mar 5 14:55:47 CET 2010

In our previous episode, Henry Vermaak said:
> Maybe a command line param that does a more fuzzy linking?
> >> I guess you can still use ld instead of the internal llinker (and even
> >> import libs).
> >
> > I'd just add the decoration manually. It is typically a one-off effort.
> Except if you have cross platform code, then you need an ifdef for
> every function you import :(

It's still a one off. Annoying for hundreds of calls, but not really a
problem for a few tens. It will be more work to craete a patch to fix this

More information about the fpc-pascal mailing list