The below unit compiles in Delphi but fails in FPC with the following error:
Fatal: Syntax error, "IMPLEMENTATION" expected but "EXPORTS" found
Why?
Kind Regards,
Robert.
unit testexports;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
interface
uses Classes, SysUtils;
function GetTestExport( id_ws : Integer; strwsList : string; procfilescreated : TGetStrProc ): Boolean; stdcall;
exports GetTestExport;
implementation
function GetTestExport( id_ws : Integer; strwsList : string; procfilescreated : TGetStrProc ): Boolean;
begin
// do something
end;
end.