[fpc-pascal] Linking FPC code to a C program
vtech at volny.cz
vtech at volny.cz
Mon May 24 13:59:09 CEST 2010
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
More information about the fpc-pascal
mailing list