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

Henry Vermaak henry.vermaak at gmail.com
Fri Mar 5 13:22:41 CET 2010

On 5 March 2010 11:47, cobines <cobines at gmail.com> wrote:
> You're right, apparently it has nothing to do with C.

According to this, it has:


> I am using MinGW GCC and it also adds this decoration.
> Someone did this with Borland C++ 5 and Delphi (don't know which
> version), but Borland does not use this decoration and Delphi imports
> the functions by using plain undecorated names. I'll see, maybe
> there's a way to disable it in GCC.

You can pass --kill-at as an option to ld when you link the library
(or gcc -Wl,--kill-at).


More information about the fpc-pascal mailing list