<br><br>I just find out the solution. <br>To make sure that fpc does not change function names after compilation, one has to add 'export' identifier to such functions. This would be the solution to the above example.<br>
<br><br>function test(): integer; stdcall; export;<br><br><br><br>I tested and it linked fine. One can also use the alias identifier to be able to have a new function name references FPC function.<br><br><br>