[fpc-pascal] Linking statically C code with stdcall functions
Henry Vermaak
henry.vermaak at gmail.com
Fri Mar 5 14:14:29 CET 2010
On 5 March 2010 12:26, Marco van de Voort <marcov at stack.nl> wrote:
> In our previous episode, Henry Vermaak said:
>> > You're right, apparently it has nothing to do with C.
>>
>> According to this, it has:
>>
>> http://en.wikipedia.org/wiki/Name_mangling#C_name_decoration_in_Microsoft_Windows
>
> But the system libraries using stdcall do not use it, so apparantly it is
> turned off there. It makes more sense to make stdcall adhere to the system
> calling convention than the MSVC mangled version one. (that'd be a new
> modifier)
It's a bit useless if you can't link to any other libraries, no? I
guess you can still use ld instead of the internal llinker (and even
import libs).
Henry
More information about the fpc-pascal
mailing list