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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal