[fpc-pascal] Linking statically C code with stdcall functions
henry.vermaak at gmail.com
Fri Mar 5 14:53:31 CET 2010
On 5 March 2010 13:19, Marco van de Voort <marcov at stack.nl> wrote:
> In our previous episode, Henry Vermaak said:
>> It's a bit useless if you can't link to any other libraries, no?
> You can, you just have to specify the decoration. Or if there is a large
> scale need a modifier or directive to modify stdcall to include decoration
> could be made by interested parties.
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 :(
More information about the fpc-pascal