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

Henry Vermaak henry.vermaak at gmail.com
Fri Mar 5 15:23:02 CET 2010


On 5 March 2010 13:55, Marco van de Voort <marcov at stack.nl> wrote:
> 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
> :-)

Is this a big task?  I've never looked at the code for the linker.



More information about the fpc-pascal mailing list