I have a test project managed by Lazarus that looks like this:
library TestDLL;
{$MODE DELPHI}
uses DOS, SysUtils;
function t(x,y:integer) : integer; stdcall; begin result := x*y; end;
exports t; begin end.
When I run: ppcppc TestDLL.pas
I get the following linker error:
Free Pascal Compiler version 2.0.1 [2005/05/31] for powerpc Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Darwin for PowerPC
Compiling TestDLL.pas
Assembling testdll
Linking libTestDLL.dylib /usr/bin/ld: unknown flag: -fini
TestDLL.pas(16,1) Error: Error while linking
Can anyone help?