[fpc-pascal] Linking C object against "Pascal runtime"

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Sat May 8 23:09:18 CEST 2010


FPC automatically does name mangling in your procedures, I guess your
procedure really looks currently like:

function _strlen(s: pansichar): integer; cdecl name 'MYUNIT$_STRLEN';

Or even greater, with parameter type info and stuff. I would recommend
that you declare it as:

function _strlen(s: pansichar): integer; cdecl name '_strlen';

-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list