[fpc-pascal] Mac OS X 10.6.1 problem
Marco van de Voort
marcov at stack.nl
Mon Oct 12 09:29:16 CEST 2009
In our previous episode, Jonas Maebe said:
> > Using OS X 10.6.1, FPC 2.2.4, Xcode 3.2 on intel iMac.
> >
> > The program and units all have {$I Directives.inc} at top of each
> > file. Compile lists many errors like:
> >
> > 6: Mode switch "OBJFPC" not allowed here
> >
> > Any hints?
>
> This is unrelated to Mac OS X.
>
> A modeswitch must occur before any code is parsed. In practice this
> means right above or below the "unit" statement. Older versions of FPC
> (2.2.0?) were more lenient in checking this.
(I talked to Paul on IRC, and it was multiple $mode directives that caused
the problem. Afaik that limitation was added at that same time too)
More information about the fpc-pascal
mailing list