Using Lazarus to make a shared library on Mac OSX Tiger lazarus / 10-Designer ---------------------------------------------------------------------- jcannonb · 2005-06-03 20:20 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? ---------------------------------------------------------------------- Marc · 2005-06-06 09:53 THis is more a FPC question, so you can also ask it at the FPC forum. ---------------------------------------------------------------------- Forest · 2005-06-08 06:56 Uses DOS ???