[fpc-pascal] Mac OS X 10.6.1 problem

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Oct 12 09:15:02 CEST 2009


On 09 Oct 2009, at 19:57, Paul Davidson wrote:

> 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.


Jonas



More information about the fpc-pascal mailing list