directive 'local' causes compilation error under Mac OS X
Original Reporter info from Mantis: werner.bochtler@zkrd.de
-
Reporter name: Werner Bochtler
Original Reporter info from Mantis: werner.bochtler@zkrd.de
- Reporter name: Werner Bochtler
Description:
Using the directive 'local' causes compilation error under Mac OS X.
The demo project compiles fine under Linux.
After removing 'local' the project compiles under Mac OS X
without any problems.
Steps to reproduce:
Free Pascal Compiler version 2.3.1 [2008/08/05] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Darwin for i386
Compiling FPCtest.dpr
Compiling FPCtestMain.pas
Assembling fpctestmain
FPCtestMain.pas:32:non-relocatable subtraction expression, "L_FPCTESTMAIN
_Ld1$non_lazy_ptr" minus "Lj8"
FPCtestMain.pas:32:symbol: "Lj8" can't be undefined in a subtraction expression
FPCtestMain.pas:unknown:Undefined local symbol Lj8
FPCtestMain.pas(10,36) Error: Error while assembling exitcode 1
FPCtestMain.pas(10,36) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
Mantis conversion info:
- Mantis ID: 11852
- OS: Mac OS X 10.5
- Platform: MacMini (Core 2 Duo)
- Version: 2.3.1
- Fixed in version: 2.2.4
- Fixed in revision: 12145 (#9f548a48)
- Target version: 2.2.4