Recent

Author Topic: Using Lazarus to make a shared library on Mac OSX Tiger  (Read 6335 times)

jcannonb

  • Newbie
  • Posts: 5
Using Lazarus to make a shared library on Mac OSX Tiger
« on: June 03, 2005, 10:20:50 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
Using Lazarus to make a shared library on Mac OSX Tiger
« Reply #1 on: June 06, 2005, 11:53:41 am »
THis is more a FPC question, so you can also ask it at the FPC forum.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Forest

  • New Member
  • *
  • Posts: 16
Using Lazarus to make a shared library on Mac OSX Tiger
« Reply #2 on: June 08, 2005, 08:56:32 am »
Uses DOS ???

 

TinyPortal © 2005-2018