Hi,
is it possible to link FPC compiled units to a C program on Linux? I'm not able to figure it out.
FPC uses some strange way to name symbols and whatever I try, I always end up with the linking errors.
I'm probably doing some trivial error, but I just can't find it.
Simple function:
function aplusb(a,b:longint):longint;cdecl;gets exported as something like:
text.n_testunit_aplusb$longint$longint$$longint
Any help appreciated. (And I need the same on Windows later, I just didn't get there yet).
VK
